MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / graphlite_free_string

Function graphlite_free_string

graphlite-ffi/src/lib.rs:365–371  ·  view source on GitHub ↗
(s: *mut c_char)

Source from the content-addressed store, hash-verified

363/// * Must not be called on strings not allocated by GraphLite
364#[no_mangle]
365pub unsafe extern "C" fn graphlite_free_string(s: *mut c_char) {
366 if !s.is_null() {
367 unsafe {
368 drop(CString::from_raw(s));
369 }
370 }
371}
372
373/// Close database connection and free resources
374///

Callers

nothing calls this directly

Calls 1

is_nullMethod · 0.80

Tested by

no test coverage detected