Fix DeviceCborInfo not freeing memory on drop

This commit is contained in:
pjht 2023-08-28 15:15:52 -05:00
parent 331f74415a
commit 4e50a45db7
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E
2 changed files with 7 additions and 7 deletions

View File

@ -79,7 +79,7 @@
- fido_cbor_info_certs_value_ptr
- fido_cbor_info_extensions_len
- fido_cbor_info_extensions_ptr
- fido_cbor_info_free
Y fido_cbor_info_free
- fido_cbor_info_fwversion
- fido_cbor_info_maxcredbloblen
- fido_cbor_info_maxcredcntlst
@ -88,11 +88,11 @@
- fido_cbor_info_maxmsgsiz
- fido_cbor_info_maxrpid_minpinlen
- fido_cbor_info_minpinlen
- fido_cbor_info_new
Y fido_cbor_info_new
- fido_cbor_info_new_pin_required
- fido_cbor_info_options_len
- fido_cbor_info_options_name_ptr
- fido_cbor_info_options_value_ptr
Y fido_cbor_info_options_len
Y fido_cbor_info_options_name_ptr
Y fido_cbor_info_options_value_ptr
- fido_cbor_info_protocols_len
- fido_cbor_info_protocols_ptr
- fido_cbor_info_rk_remaining
@ -202,7 +202,7 @@ Y fido_dev_force_fido2
Y fido_dev_force_u2f
Y fido_dev_free
Y fido_dev_get_assert
- fido_dev_get_cbor_info
Y fido_dev_get_cbor_info
Y fido_dev_get_retry_count
- fido_dev_get_touch_begin
- fido_dev_get_touch_status

View File

@ -2,7 +2,7 @@ use std::{collections::HashMap, ffi::CStr};
use libfido2_sys::*;
c_type_wrapper!(fido_cbor_info_t, DeviceCborInfo);
c_type_wrapper!(fido_cbor_info_t, DeviceCborInfo, free = fido_cbor_info_free);
impl DeviceCborInfoRef {
pub fn options(&self) -> HashMap<String, bool> {