Skip to content

Commit

Permalink
Merge pull request #40930 from Xrayez/fix-leak-test-args
Browse files Browse the repository at this point in the history
Fix memory leak in test args
  • Loading branch information
akien-mga authored Jul 31, 2020
2 parents 5af5331 + db1259a commit bc813fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bc813fd

Please sign in to comment.