The CmFree function frees a memory block allocated from a heap by the CmMalloc function.
Previously allocated memory block to be freed.
This function does not return a value.
The CmFree function deallocates a memory block that was previously allocated by a call to the CmMalloc function. The number of freed bytes is equivalent to the number of bytes requested when the block was allocated.
If pvPtr is NULL, the pointer is ignored and CmFree immediately returns.
Attempting to CmFree a pointer to a memory block that was not allocated by CmMalloc may affect subsequent allocation requests and cause errors.
Minimum supported client
|Windows Vista [desktop apps only]|
Minimum supported server
|Windows Server 2008 [desktop apps only]|