From c25c7d9359451ec91c4290a84b17185fa32f167f Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 18 Jan 2019 14:39:08 +0200 Subject: Start fixing memory leaks in namespace management. --- profile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'profile.c') diff --git a/profile.c b/profile.c index 3d954d30..e44f8be8 100644 --- a/profile.c +++ b/profile.c @@ -2033,6 +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); current_namespace = name; if (do_profile) -- cgit v1.2.3