summaryrefslogtreecommitdiff
path: root/tests/dumptest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dumptest.cc')
-rw-r--r--tests/dumptest.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/dumptest.cc b/tests/dumptest.cc
index 4071669..22dd96c 100644
--- a/tests/dumptest.cc
+++ b/tests/dumptest.cc
@@ -139,6 +139,9 @@ int main(int argc, char **argv)
outfile << dumpstdstr << "\n";
outfile.close();
+ delete root_node;
+ delete root_module;
+
root_module = parsefile(outfilename);
if (!root_module) {
fprintf(stderr, "Error: Unable to read back dumped file\n");
@@ -159,6 +162,9 @@ int main(int argc, char **argv)
exit(1);
}
+ delete root_node;
+ delete root_module;
+
Builtins::instance(true);
return rc;
contact: Jan Huwald // Impressum