[][src]Function drone_core::ffi::libc::free

#[no_mangle]
pub unsafe extern "C" fn free(ptr: *mut c_void)

Frees the memory space pointed to by ptr, which must have been returned by a previous call to malloc, calloc, or realloc. Otherwise, or if free(ptr) has already been called before, undefined behavior occurs. If ptr is NULL, no operation is performed.

Safety

This function works with raw pointers.