IMalloc::HeapMinimize  L41JL.

Minimizes the heap as much as possible by releasing unused memory to the operating system, coalescing adjacent free blocks and committing free pages.

void HeapMinimize();

Remarks

Calling IMalloc::HeapMinimize is useful when an application has been running for some time and the heap may be fragmented.

See Also

IMalloc::Alloc1THWWZM, IMalloc::Free62NW.NT, IMalloc::Realloc5HRJV.