summaryrefslogtreecommitdiff
path: root/rust/src/variable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/variable.rs')
-rw-r--r--rust/src/variable.rs4
1 files changed, 2 insertions, 2 deletions
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<Ref<Type>>, 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) };
}
}