Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IMalloc::Free method

Frees a previously allocated block of memory.

Syntax


void Free(
  [in]  void *pv
);

Parameters

pv [in]

A pointer to the memory block to be freed. If this parameter is NULL, this method has no effect.

Return value

This method does not return a value.

Remarks

This method frees a block of memory previously allocated through a call to IMalloc::Alloc or IMalloc::Realloc. The number of bytes freed equals the number of bytes that were allocated. After the call, the block of memory pointed to by pv is invalid and can no longer be used.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IMalloc is defined as 00000002-0000-0000-C000-000000000046

See also

CoTaskMemFree
IMalloc

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.