diff options
| author | Mason Reed <mason@vector35.com> | 2025-02-02 19:34:27 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-02-13 13:00:05 -0500 |
| commit | ee5063327e3ddefaa59ee2ff90e6e9f54eca2076 (patch) | |
| tree | 15fd185a398de6a08832839cd78f1fbe5393b86a /binaryninjacore.h | |
| parent | 1014cb1872c06b7dbfbee55d4a0b4e6a5743ec6b (diff) | |
Fix leaking BNDataVariableAndName when calling BNGetDebugDataVariableBy functions
Diffstat (limited to 'binaryninjacore.h')
| -rw-r--r-- | binaryninjacore.h | 12 |
1 files changed, 6 insertions, 6 deletions
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( |
