#include "petscsys.h" PetscErrorCode PetscFreeA(int n,int lineno,const char *function,const char *filename,void *ptr0,...)Not Collective
n | - number of objects to free (at least 1) | |
lineno | - line number to attribute deallocation (typically __LINE__) | |
function | - function to attribute deallocation (typically PETSC_FUNCTION_NAME) | |
filename | - file name to attribute deallocation (typically __FILE__) | |
ptr0 ... | - first of n pointers to free |
The pointers are zeroed to prevent users from accidently reusing space that has been freed.