Use decrement_strong_count directly

This commit is contained in:
gwenn 2025-02-01 10:57:24 +01:00
parent 01e8511c9f
commit e911411921

View File

@ -43,7 +43,7 @@ use crate::{Connection, Result};
pub(crate) const ARRAY_TYPE: *const c_char = c"rarray".as_ptr();
pub(crate) unsafe extern "C" fn free_array(p: *mut c_void) {
drop(Rc::from_raw(p as *const Vec<Value>));
Rc::decrement_strong_count(p as *const Vec<Value>);
}
/// Array parameter / pointer