Skip to main content

free_shared

Function free_shared 

Source
pub unsafe fn free_shared(ptr: *mut u8, size: usize)
Expand description

Free shared memory allocated by alloc_shared.

ยงSafety

ptr must have been returned by alloc_shared with the same size. The pointer must not be used after this call.