Fix memory leak in test args

This commit is contained in:
Andrii Doroshenko (Xrayez) 2020-07-31 23:58:22 +03:00
parent 29df1919e1
commit db1259ac70

View file

@ -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();