From 4025361513068463390900635313910200542556 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 14 Nov 2023 18:35:38 -0500 Subject: Fix a number of leaks and bad uses of free in the api See https://github.com/Vector35/binaryninja-api/issues/4751 --- relocationhandler.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'relocationhandler.cpp') diff --git a/relocationhandler.cpp b/relocationhandler.cpp index 045e9fa6..b25b0f65 100644 --- a/relocationhandler.cpp +++ b/relocationhandler.cpp @@ -139,6 +139,7 @@ bool CoreRelocationHandler::GetRelocationInfo( BNRelocationHandlerGetRelocationInfo(m_object, view->GetObject(), arch->GetObject(), results, result.size()); for (size_t i = 0; i < result.size(); i++) result[i] = results[i]; + delete[] results; return status; } -- cgit v1.3.1