IMalloc::Free (Compact 2013)
3/26/2014
This method frees a previously allocated block of memory.
Syntax
void Free(
void* pv
);
Parameters
- pv
[in] Pointer to the memory block to be freed.
Return Value
None.
Remarks
IMalloc::Free frees a block of memory previously allocated through a call to the IMalloc::Alloc or IMalloc::Realloc method. The number of bytes freed equals the number of bytes that were allocated. After the call, the memory block pointed to by pv is invalid and can no longer be used.
Note
The pv parameter can be NULL. If so, this method has no effect.
To determine whether the platform supports this interface, see Determining Supported COM APIs.
Requirements
Header |
objidl.h, |
Library |
ole32.lib |