mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 06:13:33 +08:00
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:
committed by
Daniel Agar
parent
3996ab1fc5
commit
3d29e2e76f
@@ -45,6 +45,7 @@
|
||||
test_class* test = new test_class(); \
|
||||
bool success = test->run_tests(); \
|
||||
test->print_results(); \
|
||||
delete test; \
|
||||
return success ? 0 : -1; \
|
||||
} \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user