Function tikv_jemalloc_sys::dallocx
source · pub unsafe extern "C" fn dallocx(ptr: *mut c_void, flags: c_int)Expand description
Deallocates previously-allocated memory region referenced by ptr.
This makes the space available for future allocations.
Safety
The behavior is undefined if:
ptrdoes not match a pointer earlier returned by the memory allocation functions of this crate, orptris null, or- the memory region referenced by
ptrhas been deallocated.