summaryrefslogtreecommitdiff
path: root/rust/src/workflow.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2024-10-26 20:33:45 -0400
committerMason Reed <mason@vector35.com>2024-10-26 20:33:45 -0400
commit952d16ca58429d126224662f4f5f496a0535c7ac (patch)
tree82583dcbf8349d2678f7a8762346a493571070ae /rust/src/workflow.rs
parent4864ede6684833163153343b9604619c7e7a5dd6 (diff)
Fix all low level il function getters leaking in rust
Diffstat (limited to 'rust/src/workflow.rs')
-rw-r--r--rust/src/workflow.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/workflow.rs b/rust/src/workflow.rs
index 8409ad70..246571a8 100644
--- a/rust/src/workflow.rs
+++ b/rust/src/workflow.rs
@@ -52,7 +52,7 @@ impl AnalysisContext {
let result = unsafe { BNGetFunctionLiftedIL(func.handle) };
let arch = self.function().arch();
unsafe {
- Some(llil::Function::from_raw(
+ Some(llil::Function::ref_from_raw(
arch,
NonNull::new(result)?.as_ptr(),
))
@@ -73,7 +73,7 @@ impl AnalysisContext {
let result = unsafe { BNAnalysisContextGetLowLevelILFunction(self.handle.as_ptr()) };
let arch = self.function().arch();
unsafe {
- Some(llil::Function::from_raw(
+ Some(llil::Function::ref_from_raw(
arch,
NonNull::new(result)?.as_ptr(),
))