summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@kolpackov.net>2009-10-07 09:34:42 +0000
committerBoris Kolpackov <boris@kolpackov.net>2009-10-07 09:34:42 +0000
commitbaee33eb0fb4b8bb84fb5bf428c99f5da4372be4 (patch)
tree995275fd144d1f554486ac21a779d77cffeb92e1 /read.c
parentbd2d124f275cec912d33ec1463ba66e799518340 (diff)
downloadgunmake-baee33eb0fb4b8bb84fb5bf428c99f5da4372be4.tar.gz
Minor fix and code rework.
Diffstat (limited to 'read.c')
-rw-r--r--read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/read.c b/read.c
index 3a022d6..aa27701 100644
--- a/read.c
+++ b/read.c
@@ -1341,6 +1341,7 @@ do_undefine (char *name, enum variable_origin origin, struct ebuffer *ebuf)
p[1] = '\0';
undefine_variable_global (name, p - name + 1, origin);
+ free (var);
}
/* Execute a `define' directive.