Skip to main content

libsession_session_id_free

Function libsession_session_id_free 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn libsession_session_id_free(id: *mut c_char)
Expand description

Frees a session ID returned by a session ID or display lookup.

ยงSafety

id must be null or a pointer written on success by libsession_get_session, libsession_pid_get_session, or libsession_uid_get_display that has not already been freed. Its terminating NUL must remain at its original position. The pointer must not be used after this call.