pub unsafe extern "C" fn free_sized(ptr: *mut c_void, size: size_t)Expand description
Deallocates previously-allocated memory region referenced by ptr.
This makes the space available for future allocations.
If ptr is null, no action occurs.
ยงSafety
The behavior is undefined if:
ptrdoes not match a pointer earlier returned by the memory allocation functions of this crate, or- the memory region referenced by
ptrhas been deallocated, or ptris returned byaligned_alloc.