summaryrefslogtreecommitdiff
path: root/expand.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2014-04-25 17:38:08 -0400
committerPaul Smith <psmith@gnu.org>2014-07-07 01:59:03 -0400
commit423c3955d97dc84986be08ed0074d8eb58c624ef (patch)
tree1a8e0f15f0dc8d22ed7c2472c87fc71ea1434e0c /expand.c
parentac67346d0fb5e5ea359d34c2c9215bd1892455f3 (diff)
downloadgunmake-423c3955d97dc84986be08ed0074d8eb58c624ef.tar.gz
* various: Assume ISO C89-compliant free() implementation.
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/expand.c b/expand.c
index 28ec198..e4b08f1 100644
--- a/expand.c
+++ b/expand.c
@@ -377,7 +377,6 @@ variable_expand_string (char *line, const char *string, long length)
Look up the value of the variable. */
o = reference_variable (o, beg, end - beg);
- if (abeg)
free (abeg);
}
break;
@@ -447,8 +446,7 @@ expand_argument (const char *str, const char *end)
r = allocated_variable_expand (tmp);
- if (alloc)
- free (alloc);
+ free (alloc);
return r;
}