mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Fix memory leak in run_tests()
This commit is contained in:
parent
4a95c37e14
commit
d5ca3b721e
@ -1772,6 +1772,10 @@ void run_tests()
|
||||
TEST(TestConnection);
|
||||
dout_con<<"=== END RUNNING UNIT TESTS FOR CONNECTION ==="<<std::endl;
|
||||
}
|
||||
|
||||
delete idef;
|
||||
delete ndef;
|
||||
|
||||
if(tests_failed == 0){
|
||||
infostream<<"run_tests(): "<<tests_failed<<" / "<<tests_run<<" tests failed."<<std::endl;
|
||||
infostream<<"run_tests() passed."<<std::endl;
|
||||
@ -1781,7 +1785,5 @@ void run_tests()
|
||||
errorstream<<"run_tests() aborting."<<std::endl;
|
||||
abort();
|
||||
}
|
||||
delete idef;
|
||||
delete ndef;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user