summaryrefslogtreecommitdiff
path: root/rust/src/variable.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-05-04 15:38:54 -0400
committerMason Reed <35282038+emesare@users.noreply.github.com>2025-05-12 17:45:24 -0400
commite180c955f9397849bdb1ea08f1e913ebac71ed5d (patch)
treea6c8e309e3a723c04e2d5085c0449bd8f3a10db5 /rust/src/variable.rs
parentbb68ef5ad6c3e6a391bc884763231ed3291a5f9e (diff)
[Rust] More cleanup
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) };
}
}