Function libax::cbindings::ax_free

source ·
#[no_mangle]
pub unsafe extern "C" fn ax_free(addr: *mut c_void)
Available on crate features alloc and cbindings only.
Expand description

Deallocate memory.

(WARNING) If the address to be released does not match the allocated address, an error should occur, but it will NOT be checked out. This is due to the global allocator Buddy_system (currently used) does not check the validity of address to be released.