We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd80e64 commit 47ef9cdCopy full SHA for 47ef9cd
rust/src/linear_view.rs
@@ -469,7 +469,12 @@ impl LinearDisassemblyLine {
469
}
470
471
pub(crate) fn free_raw(value: BNLinearDisassemblyLine) {
472
- let _ = unsafe { Function::ref_from_raw(value.function) };
+ if !value.function.is_null() {
473
+ let _ = unsafe { Function::ref_from_raw(value.function) };
474
+ }
475
+ if !value.block.is_null() {
476
+ let _ = unsafe { BasicBlock::ref_from_raw(value.block, NativeBlock::new()) };
477
478
DisassemblyTextLine::free_raw(value.contents);
479
480
0 commit comments