# IMallocSpy::PostFree

Called just after invoking IMalloc::Free.

void PostFree(

BOOL fSpyed | //Whether the memory block to be freed was allocated while the spy is active
); |

Parameter

fSpyed
  [in] TRUE if the memory block to be freed was allocated while the current spy was active, otherwise FALSE.

Remarks

When a spy object implementing IMallocSpy is registered with CoRegisterMallocSpy, OLE calls this method immediately after any call to IMalloc::Free. This method is included for completeness and consistency &emdash; it is not anticipated that developers will implement significant functionality in this method. On return, the fSpyed parameter simply indicates whether the memory was freed while the current spy was active.

See Also

IMalloc::Free, IMallocSpy::PreFree, CoRegisterMallocSpy, CoRevokeMallocSpy