pub unsafe fn free(ptr: *mut c_void)
Frees allocated memory.
This function is unsafe because it deallocates memory pointed to by ptr. The caller must ensure that ptr was previously allocated by malloc or realloc.
ptr
malloc
realloc