Fix some test code related leaks (#10488)

These leaks are not critical but the address-sanitizer complains.
And it's better programming practice anyway.

Signed-off-by: Lukas Woodtli <woodtli.lukas@gmail.com>
This commit is contained in:
Lukas Woodtli
2018-09-16 17:38:50 -04:00
committed by Daniel Agar
parent 3996ab1fc5
commit 3d29e2e76f
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -45,6 +45,7 @@
test_class* test = new test_class(); \
bool success = test->run_tests(); \
test->print_results(); \
delete test; \
return success ? 0 : -1; \
} \
}