Function deallocate

Source
pub unsafe fn deallocate(ptr: *mut c_void, size: size_t) -> i32
Expand description

ยงSafety

ptr should be a valid pointer into a program allocated structure. size+ptr should never be larger than the allocation bound. Furthermore ptr should no longer be stored as it is a dangling pointer after deallocation