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 --- type.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'type.cpp') diff --git a/type.cpp b/type.cpp index 0e686a0a..4ecbc338 100644 --- a/type.cpp +++ b/type.cpp @@ -1909,6 +1909,7 @@ TypeBuilder& TypeBuilder::SetParameters(const std::vector& pa size_t paramCount = 0; BNFunctionParameter* paramArray = GetParamArray(params, paramCount); BNSetFunctionTypeBuilderParameters(m_object, paramArray, paramCount); + delete[] paramArray; return *this; } -- cgit v1.3.1