Function libmimalloc_sys::mi_heap_destroy
source · [−]Expand description
Destroy a heap, freeing all its still allocated blocks.
Use with care as this will free all blocks still allocated in the heap. However, this can be a very efficient way to free all heap memory in one go.
If heap
is the default heap, the default heap is set to the backing
heap.