Skip to content

Commit fa6ceb7

Browse files
committed
Fix refcount bug in FunctionLifter constructor
1 parent c11e627 commit fa6ceb7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rust/src/architecture.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ impl FunctionLifterContext {
620620
for i in 0..flc_ref.basicBlockCount {
621621
let block = unsafe {
622622
Some(BasicBlock::ref_from_raw(
623-
*flc_ref.basicBlocks.add(i),
623+
BNNewBasicBlockReference(*flc_ref.basicBlocks.add(i)),
624624
NativeBlock::new(),
625625
))
626626
};
@@ -653,7 +653,7 @@ impl FunctionLifterContext {
653653

654654
FunctionLifterContext {
655655
handle,
656-
function,
656+
function: BNNewLowLevelILFunctionReference(function),
657657
platform,
658658
logger,
659659
blocks,

0 commit comments

Comments
 (0)