summaryrefslogtreecommitdiff
path: root/type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'type.cpp')
-rw-r--r--type.cpp1
1 files changed, 1 insertions, 0 deletions
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<FunctionParameter>& pa
size_t paramCount = 0;
BNFunctionParameter* paramArray = GetParamArray(params, paramCount);
BNSetFunctionTypeBuilderParameters(m_object, paramArray, paramCount);
+ delete[] paramArray;
return *this;
}