diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2019-01-18 14:39:08 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2019-01-18 14:39:08 +0200 |
commit | c25c7d9359451ec91c4290a84b17185fa32f167f (patch) | |
tree | eab754306affe4bbc2d427cbd4bc8f837499a75e /main.c | |
parent | 6f16c4f468e6f3a6769509e1e70ff2dc4873e8d2 (diff) | |
download | egawk-c25c7d9359451ec91c4290a84b17185fa32f167f.tar.gz egawk-c25c7d9359451ec91c4290a84b17185fa32f167f.tar.bz2 egawk-c25c7d9359451ec91c4290a84b17185fa32f167f.zip |
Start fixing memory leaks in namespace management.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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(); |