summaryrefslogtreecommitdiff
path: root/function.c
diff options
context:
space:
mode:
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;
}