# PetscOptionsLeftRestore
Free memory for the unused PETSc options obtained using `PetscOptionsLeftGet()`. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscOptionsLeftRestore(PetscOptions options, PetscInt *N, char **names[], char **values[])
```
Not Collective


## Input Parameters

- ***options -*** options database, use NULL for default global database
- ***names -*** names of options not used
- ***values -*** values of options not used





## See Also
 `PetscOptionsAllUsed()`, `PetscOptionsLeft()`, `PetscOptionsLeftGet()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/objects/options.c.html#PetscOptionsLeftRestore">src/sys/objects/options.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/options.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
