IMalloc::Free

void IMalloc::Free(pv)

De-allocate a memory block. The pv argument points to a memory block previously allocated through a call to IMalloc::Alloc or IMalloc::Realloc. The number of bytes freed is the number of bytes with which the block was originally allocated (or reallocated, in the case of Realloc). After the call, the pv parameter is invalid, and can no longer be used. pv may be NULL, in which case this function is a no-op.

Argument

Type

Desscription

pv

void *

Pointer to the block to free. May be NULL.