Skip to main content

libsession_session_free

Function libsession_session_free 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn libsession_session_free( id: *mut LibsessionSession, )
Expand description

Frees an owned session ID handle.

ยงSafety

id must be null or a live handle allocated by this library. The caller must own the handle and ensure it is freed only once, including through session-list cleanup. No other pointer or reference may access the handle during this call. The handle and any references into it must not be used afterward.