maint: remove useless if-before-free tests
authorJim Meyering <meyering@redhat.com>
Sat, 26 Sep 2009 17:44:15 +0000 (19:44 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 26 Sep 2009 17:44:15 +0000 (19:44 +0200)
* gzip.c (do_exit): Remove useless if-before-free tests.

gzip.c

diff --git a/gzip.c b/gzip.c
index 6f437e02fc3378f26c1163e067afc9b63ce120fb..e7043a51d1bed040c5ae5b424de88f7c121469f7 100644 (file)
--- a/gzip.c
+++ b/gzip.c
@@ -1829,8 +1829,10 @@ local void do_exit(exitcode)
 
     if (in_exit) exit(exitcode);
     in_exit = 1;
-    if (env != NULL)  free(env),  env  = NULL;
-    if (args != NULL) free(args), args = NULL;
+    free(env);
+    env  = NULL;
+    free(args);
+    args = NULL;
     FREE(inbuf);
     FREE(outbuf);
     FREE(d_buf);