diff options
| author | Mason Reed <mason@vector35.com> | 2025-04-10 16:39:26 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-04-10 17:19:34 -0400 |
| commit | 1973b852a1ffc2ea3e050d078a6f2b9933c199a1 (patch) | |
| tree | 3f5fb2c328dd65ea2dff7b80de1b3e89d87d301e /rust/src/types.rs | |
| parent | 2c79a0458cd5bc7af0264d18d8ca2fc1a7894228 (diff) | |
Fix function type construction leaking in Rust API
Diffstat (limited to 'rust/src/types.rs')
| -rw-r--r-- | rust/src/types.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/types.rs b/rust/src/types.rs index cb05a69d..9d1353bd 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -771,7 +771,7 @@ impl Type { }; let result = unsafe { - Self::ref_from_raw(BNNewTypeReference(BNCreateFunctionType( + Self::ref_from_raw(BNCreateFunctionType( &mut owned_raw_return_type, &mut raw_calling_convention, raw_parameters.as_mut_ptr(), @@ -785,7 +785,7 @@ impl Type { &mut return_regs, BNNameType::NoNameType, &mut pure, - ))) + )) }; for raw_param in raw_parameters { |
