Function libmimalloc_sys::mi_heap_destroy
source ยท pub unsafe extern "C" fn mi_heap_destroy(heap: *mut mi_heap_t)
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.