aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-01-19 22:16:59 +0200
committerArnold D. Robbins <arnold@skeeve.com>2019-01-19 22:16:59 +0200
commit0efefad3d8ff61355002b828c13a531e15f55978 (patch)
tree29766aaa7e0f6e4b44ea816f28b2e8de08437f66 /profile.c
parentb51d10b1697c8a95c25ec7b5d9781c4cd780dca4 (diff)
downloadegawk-0efefad3d8ff61355002b828c13a531e15f55978.tar.gz
egawk-0efefad3d8ff61355002b828c13a531e15f55978.tar.bz2
egawk-0efefad3d8ff61355002b828c13a531e15f55978.zip
Continue fixing memory leaks related to namespaces.
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/profile.c b/profile.c
index e44f8be8..ad0d337b 100644
--- a/profile.c
+++ b/profile.c
@@ -2033,8 +2033,8 @@ pp_namespace(const char *name, INSTRUCTION *comment)
if (strcmp(current_namespace, name) == 0)
return;
- if (current_namespace != awk_namespace)
- efree((void *) current_namespace);
+ // don't need to free current_namespace, it comes from
+ // info saved in Op_namespace instructions.
current_namespace = name;
if (do_profile)