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
commitbeaf19ff51cd80901583c86b38318908176989fa (patch)
tree815c7f2dcc9e2220f7f21c7d30f7533fdd2a4542 /function.c
parentffab8e78a12bbe629de10b8880959e3a4577129e (diff)
downloadmake-beaf19ff51cd80901583c86b38318908176989fa.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 d3acd8b6..ad3e0d2d 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;
}