Skip to main content

free_raw

Function free_raw 

Source
pub unsafe fn free_raw(payload: *mut u8)
Expand description

js_free: release a block from alloc_raw, or do nothing for a null pointer.

ยงSafety

payload must be null, or come from alloc_raw/alloc_raw_zeroed/realloc_raw with its current size, and the caller must not use it afterwards.