Skip to main content

js_free

Function js_free 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn js_free( _ctx: *mut JsContext, ptr: *mut c_void, )
Expand description

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

ยงSafety

ptr must be null or a live pointer from the js_malloc family, and must not be used afterwards.