From ee5063327e3ddefaa59ee2ff90e6e9f54eca2076 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 2 Feb 2025 19:34:27 -0500 Subject: Fix leaking BNDataVariableAndName when calling BNGetDebugDataVariableBy functions --- binaryninjacore.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'binaryninjacore.h') diff --git a/binaryninjacore.h b/binaryninjacore.h index 12a871cd..351f5c53 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -37,14 +37,14 @@ // Current ABI version for linking to the core. This is incremented any time // there are changes to the API that affect linking, including new functions, // new types, or modifications to existing functions or types. -#define BN_CURRENT_CORE_ABI_VERSION 93 +#define BN_CURRENT_CORE_ABI_VERSION 94 // Minimum ABI version that is supported for loading of plugins. Plugins that // are linked to an ABI version less than this will not be able to load and // will require rebuilding. The minimum version is increased when there are // incompatible changes that break binary compatibility, such as changes to // existing types or functions. -#define BN_MINIMUM_CORE_ABI_VERSION 92 +#define BN_MINIMUM_CORE_ABI_VERSION 94 #ifdef __GNUC__ #ifdef BINARYNINJACORE_LIBRARY @@ -7555,10 +7555,10 @@ extern "C" BNDebugInfo* const debugInfo, const BNDataVariableAndName* var); BINARYNINJACOREAPI BNDataVariableAndName* BNGetDebugDataVariables( BNDebugInfo* const debugInfo, const char* const name, size_t* count); - BINARYNINJACOREAPI BNDataVariableAndName* BNGetDebugDataVariableByName( - BNDebugInfo* const debugInfo, const char* const parserName, const char* const variableName); - BINARYNINJACOREAPI BNDataVariableAndName* BNGetDebugDataVariableByAddress( - BNDebugInfo* const debugInfo, const char* const parserName, const uint64_t address); + BINARYNINJACOREAPI bool BNGetDebugDataVariableByName( + BNDebugInfo* const debugInfo, const char* const parserName, const char* const variableName, BNDataVariableAndName* var); + BINARYNINJACOREAPI bool BNGetDebugDataVariableByAddress( + BNDebugInfo* const debugInfo, const char* const parserName, const uint64_t address, BNDataVariableAndName* var); BINARYNINJACOREAPI BNDataVariableAndName* BNGetDebugDataVariablesByName( BNDebugInfo* const debugInfo, const char* const variableName, size_t* count); BINARYNINJACOREAPI BNDataVariableAndNameAndDebugParser* BNGetDebugDataVariablesByAddress( -- cgit v1.3.1