Free one or more objects, possibly allocated using coalesced malloc
PetscErrorCode PetscFreeA(int n,int lineno,const char *function,const char *filename,void *ptr0,...)
|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
This function is not normally called directly by users, but rather via the macros PetscFree1(), PetscFree2(), etc.
The pointers are zeroed to prevent users from accidently reusing space that has been freed.
PetscMallocAlign(), PetscMallocSet(), PetscMallocA(), PetscFree1(), PetscFree2(), PetscFree3(), PetscFree4(), PetscFree5(), PetscFree6(), PetscFree7()
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages