pub unsafe fn free(ptr: NonNull<u8>, size: usize)Expand description
Free a memory block.
ptr - The pointer to the memory block.
size - The size of the memory block.
ยงSafety
The caller must ensure that the pointer is from a previous call to malloc and that the size is still the same.