From e180c955f9397849bdb1ea08f1e913ebac71ed5d Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 4 May 2025 15:38:54 -0400 Subject: [Rust] More cleanup --- rust/src/variable.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/variable.rs') diff --git a/rust/src/variable.rs b/rust/src/variable.rs index f6b0f522..c0cab7d5 100644 --- a/rust/src/variable.rs +++ b/rust/src/variable.rs @@ -186,7 +186,7 @@ impl NamedVariableWithType { pub(crate) fn free_raw(value: BNVariableNameAndType) { let _ = unsafe { Type::ref_from_raw(value.type_) }; - let _ = unsafe { BnString::from_raw(value.name) }; + unsafe { BnString::free_raw(value.name) }; } pub fn new(variable: Variable, ty: Conf>, name: String, auto_defined: bool) -> Self { @@ -307,7 +307,7 @@ impl StackVariableReference { pub(crate) fn free_raw(value: BNStackVariableReference) { let _ = unsafe { Type::ref_from_raw(value.type_) }; - let _ = unsafe { BnString::from_raw(value.name) }; + unsafe { BnString::free_raw(value.name) }; } } -- cgit v1.3.1