diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-07-31 23:23:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-31 23:23:03 +0200 |
commit | bc813fd0615cd4e43384fcd5403a32b139d60945 (patch) | |
tree | 8baecd81f8c7dff582c509394776ccfcece96669 /tests | |
parent | 5af533147482922a08fccc6b514225a6f0e9c2bc (diff) | |
parent | db1259ac7086744f475b191b0644ac933c30289c (diff) |
Merge pull request #40930 from Xrayez/fix-leak-test-args
Fix memory leak in test args
Diffstat (limited to 'tests')
-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(); |