diff options
Diffstat (limited to 'ffi/src/openpgp/packet_pile.rs')
-rw-r--r-- | ffi/src/openpgp/packet_pile.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ffi/src/openpgp/packet_pile.rs b/ffi/src/openpgp/packet_pile.rs index 33a3735f..5f624c36 100644 --- a/ffi/src/openpgp/packet_pile.rs +++ b/ffi/src/openpgp/packet_pile.rs @@ -73,7 +73,8 @@ pub extern "system" fn sq_packet_pile_from_bytes(ctx: *mut Context, /// Frees the packet_pile. #[no_mangle] -pub extern "system" fn sq_packet_pile_free(packet_pile: *mut PacketPile) { +pub extern "system" fn sq_packet_pile_free(packet_pile: Option<&mut PacketPile>) +{ ffi_free!(packet_pile) } |