MCPcopy Create free account
hub / github.com/apache/paimon-rust / paimon_error_free

Function paimon_error_free

bindings/c/src/error.rs:74–79  ·  view source on GitHub ↗
(err: *mut paimon_error)

Source from the content-addressed store, hash-verified

72/// Only call with errors returned from paimon C functions.
73#[no_mangle]
74pub unsafe extern "C" fn paimon_error_free(err: *mut paimon_error) {
75 if !err.is_null() {
76 let e = Box::from_raw(err);
77 paimon_bytes_free(e.message);
78 }
79}
80
81// Re-use the bytes free from types - but we need it here for the error drop
82use crate::types::paimon_bytes_free;

Callers

nothing calls this directly

Calls 2

paimon_bytes_freeFunction · 0.85
is_nullMethod · 0.80

Tested by

no test coverage detected