tikv_jemallocator::ffi

Function dallocx

source
pub unsafe extern "C" fn dallocx(ptr: *mut c_void, flags: i32)
Expand description

Deallocates previously-allocated memory region referenced by ptr.

This makes the space available for future allocations.

ยงSafety

The behavior is undefined if:

  • ptr does not match a pointer earlier returned by the memory allocation functions of this crate, or
  • ptr is null, or
  • the memory region referenced by ptr has been deallocated.