diff options
author | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2020-07-31 23:58:22 +0300 |
---|---|---|
committer | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2020-07-31 23:58:22 +0300 |
commit | db1259ac7086744f475b191b0644ac933c30289c (patch) | |
tree | 138e3f99470c1d22563b054b7e538ca00b28b112 | |
parent | 29df1919e1fe425dc6f9b68863c294cadd08a80e (diff) |
Fix memory leak in test args
-rw-r--r-- | tests/test_main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_main.cpp b/tests/test_main.cpp index 89fe54f796..137882841c 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(); |