CmFree function

The CmFree function frees a memory block allocated from a heap by the CmMalloc function.

Syntax


void* CmFree(
  void *pvPtr
);

Parameters

pvPtr

Previously allocated memory block to be freed.

Return value

This function does not return a value.

Remarks

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.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

DLL

CmUtil.dll

See also

CmMalloc

 

 

Community Additions

ADD
Show:
© 2014 Microsoft