:orphan:
# PetscUnpoisonMemoryRegion
Unpoison a previously poisoned memory region 
## Synopsis
```
static inline PetscErrorCode PetscUnpoisonMemoryRegion(const void *ptr, size_t size)
```

## Input Parameters

- ***ptr  -*** The pointer to the start of the region
- ***size -*** The size (in bytes) of the region to unpoison



## Notes
Removes poisoning from a previously poisoned region. `ptr` may not be `NULL`. It is OK to
unpoison an unpoisoned region.

See `PetscPoisonMemoryRegion()` for example usage and further discussion.




## See Also
 `PetscPoisonMemoryRegion()`, `PetscIsRegionPoisoned()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petsc/private/mempoison.h.html#PetscUnpoisonMemoryRegion">include/petsc/private/mempoison.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petsc/private/mempoison.h)


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