False drop libplist from Rust

This commit is contained in:
Jackson Coxson
2025-03-25 00:09:51 -06:00
parent ac6ffde9ad
commit 42f17130b4
3 changed files with 7 additions and 3 deletions

View File

@@ -136,6 +136,7 @@ pub unsafe extern "C" fn idevice_pairing_file_serialize(
#[unsafe(no_mangle)]
pub unsafe extern "C" fn idevice_pairing_file_free(pairing_file: *mut IdevicePairingFile) {
if !pairing_file.is_null() {
log::debug!("Freeing pairing file");
let _ = unsafe { Box::from_raw(pairing_file) };
}
}