Skip to content

Commit

Permalink
U
Browse files Browse the repository at this point in the history
  • Loading branch information
silathdiir committed Oct 23, 2023
1 parent 806691f commit b7a5c4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/libzkp/impl/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ pub(crate) static OUTPUT_DIR: Lazy<Option<String>> =
pub extern "C" fn free_c_chars(ptr: *mut c_char) {
log::info!("free_c_chars BEGIN");
if !ptr.is_null() {
log::info!("free_c_chars NOT-NULL");
unsafe {
let _ = CString::from_raw(ptr);
}
} else {
log::info!("free_c_chars NULL");
}
log::info!("free_c_chars END");
}
Expand Down

0 comments on commit b7a5c4d

Please sign in to comment.