FreeMem

Releases a block of memory previously obtained from AllocMem.

Syntax: FreeMem MemPointer

MemPointer
required LongPtr. The address returned by a previous call to AllocMem.

The pointer is invalid after the call returns. Passing a pointer that did not come from AllocMem — including zero, or one that has already been freed — has undefined behaviour.

See Also