From db1259ac7086744f475b191b0644ac933c30289c Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Fri, 31 Jul 2020 23:58:22 +0300 Subject: [PATCH] Fix memory leak in test args --- tests/test_main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_main.cpp b/tests/test_main.cpp index 89fe54f7969..137882841c3 100644 --- a/tests/test_main.cpp +++ b/tests/test_main.cpp @@ -84,6 +84,9 @@ int test_main(int argc, char *argv[]) { test_context.setOption("abort-after", 5); test_context.setOption("no-breaks", true); + for (int x = 0; x < valid_arguments.size(); x++) { + delete[] args[x]; + } delete[] args; return test_context.run();