Method Free
Free(IntPtr)
Deallocates the space previously allocated by Alloc(int) or Realloc(IntPtr, int).
void Free(IntPtr ptr)
Parameters
ptr
nintPointer to the memory to deallocate.
Remarks
If ptr
is a null pointer, the function does nothing.
The behavior is undefined if the value of ptr does not equal a value returned earlier.
by Alloc(int) or Realloc(IntPtr, int).
The behavior is undefined if the memory area referred to by ptr
has already been deallocated.
The behavior is undefined if after FreeMem(IntPtr) returns, an access is
made through the pointer
ptr
(unless another allocation function happened to result
in a pointer value equal to ptr).