projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a95c37
)
Fix memory leak in run_tests()
author
PilzAdam
<pilzadam@minetest.net>
Tue, 14 May 2013 10:29:30 +0000
(12:29 +0200)
committer
PilzAdam
<pilzadam@minetest.net>
Tue, 14 May 2013 10:29:30 +0000
(12:29 +0200)
src/test.cpp
patch
|
blob
|
history
diff --git
a/src/test.cpp
b/src/test.cpp
index d1f53f8803ef8c6b6f3bae2eb73058c1bf292ef8..e1dbfa6b82c6aaf2a9804cda38459c5be06286f8 100644
(file)
--- a/
src/test.cpp
+++ b/
src/test.cpp
@@
-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;
}