aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2015-10-25 20:52:26 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2015-10-25 20:52:26 +0100
commit739d76185a32b0be8f236f0fdbbfb15080a032ef (patch)
treeb5c35e855253231d3cbd190ff1811d2311971b3e
parent51d3c624413bd7f1ed5dca4b7262307ce65cb558 (diff)
downloadcolorize-739d76185a32b0be8f236f0fdbbfb15080a032ef.tar.gz
colorize-739d76185a32b0be8f236f0fdbbfb15080a032ef.tar.bz2
Simplify code in cleanup function
-rw-r--r--colorize.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/colorize.c b/colorize.c
index ee2db84..07a409e 100644
--- a/colorize.c
+++ b/colorize.c
@@ -493,9 +493,7 @@ cleanup (void)
{
unsigned int i;
for (i = 0; i < stacked_vars; i++)
- if (vars_list[i])
- free (vars_list[i]);
-
+ free (vars_list[i]);
free_null (vars_list);
}
}