From 423c3955d97dc84986be08ed0074d8eb58c624ef Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Fri, 25 Apr 2014 17:38:08 -0400 Subject: * various: Assume ISO C89-compliant free() implementation. --- expand.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'expand.c') 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; } -- cgit v1.2.3