diff options
Diffstat (limited to 'rust/examples/mlil_lifter/src')
| -rw-r--r-- | rust/examples/mlil_lifter/src/main.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/rust/examples/mlil_lifter/src/main.rs b/rust/examples/mlil_lifter/src/main.rs index 3ba25630..b827e0cb 100644 --- a/rust/examples/mlil_lifter/src/main.rs +++ b/rust/examples/mlil_lifter/src/main.rs @@ -14,7 +14,7 @@ fn main() { // This loads all the core architecture, platform, etc plugins // Standalone executables probably need to call this, but plugins do not println!("Loading plugins..."); - binaryninja::headless::init(); + let _headless_session = binaryninja::headless::Session::new(); // Your code here... println!("Loading binary..."); @@ -46,7 +46,4 @@ fn main() { } println!(); } - - // Important! Standalone executables need to call shutdown or they will hang forever - binaryninja::headless::shutdown(); } |
