summaryrefslogtreecommitdiff
path: root/function.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2009-09-26 23:01:55 +0000
committerPaul Smith <psmith@gnu.org>2009-09-26 23:01:55 +0000
commit44ac2cdb4dc8481cff33101f95f94761c5aa74bc (patch)
treed106bad507197e5a1c680ab4d9604549f40ed537 /function.c
parent48045f99e574d1d8e049a413f5b3f40d33898dc2 (diff)
downloadgunmake-44ac2cdb4dc8481cff33101f95f94761c5aa74bc.tar.gz
Fix some memory leaks, found with valgrind.
Diffstat (limited to 'function.c')
-rw-r--r--function.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/function.c b/function.c
index a2adc31..d3acd8b 100644
--- a/function.c
+++ b/function.c
@@ -382,6 +382,7 @@ string_glob (char *line)
idx += len;
result[idx++] = ' ';
+ free (chain->name);
free (chain);
chain = next;
}