(err: *mut paimon_error)
| 72 | /// Only call with errors returned from paimon C functions. |
| 73 | #[no_mangle] |
| 74 | pub 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 |
| 82 | use crate::types::paimon_bytes_free; |
nothing calls this directly
no test coverage detected