summaryrefslogtreecommitdiff
path: root/function.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2009-10-03 20:08:20 +0000
committerPaul Smith <psmith@gnu.org>2009-10-03 20:08:20 +0000
commitf87715a62c2e6a5660c2a176fffc0d7333bcfd8c (patch)
tree815c7f2dcc9e2220f7f21c7d30f7533fdd2a4542 /function.c
parent56653d852446e74a4d998c7d91e6591e28c240f9 (diff)
downloadgunmake-f87715a62c2e6a5660c2a176fffc0d7333bcfd8c.tar.gz
- Include <alloca.h> even on non-__GNUC__ systems.
- Add some tests for unresolved bugs.
Diffstat (limited to 'function.c')
-rw-r--r--function.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/function.c b/function.c
index d3acd8b..ad3e0d2 100644
--- a/function.c
+++ b/function.c
@@ -382,7 +382,8 @@ string_glob (char *line)
idx += len;
result[idx++] = ' ';
- free (chain->name);
+ /* Because we used PARSEFS_NOCACHE above, we have to free() NAME. */
+ free ((char *)chain->name);
free (chain);
chain = next;
}