# PetscRealloc
Reallocates memory 
## Synopsis
```
#include <petscsys.h>
PetscErrorCode PetscRealloc(size_t m,void **result)
```
Not Collective


## Input Parameters

- ***m -*** number of bytes to allocate
- ***result -*** previous memory



## Output Parameter

- ***result -*** new memory allocated





## Notes
Memory is always allocated at least double aligned


## See Also
 `PetscMalloc()`, `PetscFree()`, `PetscNew()`


## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscsys.h.html#PetscRealloc">include/petscsys.h</A>


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


[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)  
