Function axlibc::free

source ·
#[no_mangle]
pub unsafe extern "C" fn free(ptr: *mut c_void)
Available on crate feature alloc 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.