IMalloc::Free (Windows CE 5.0)

Send Feedback

This method frees a previously allocated block of memory.

void Free(void* pv);

Parameters

  • pv
    [in] Pointer to the memory block to be freed.

Return Values

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

OS Versions: Windows CE 3.0 and later.
Header: Objidl.h, Objidl.idl.
Link Library: Ole32.lib

See Also

IMalloc::Alloc | IMalloc::Realloc | CoTaskMemFree

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.