aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 03a96f30..3324b698 100644
--- a/main.c
+++ b/main.c
@@ -520,6 +520,8 @@ main(int argc, char **argv)
interpret(code_block);
if (do_pretty_print) {
+ if (current_namespace != awk_namespace)
+ efree((char *) current_namespace);
current_namespace = awk_namespace;
dump_prog(code_block);
dump_funcs();