minor cleanups -- the gz stream was never getting closed
authorewt <devnull@localhost>
Thu, 12 Dec 1996 03:21:00 +0000 (03:21 +0000)
committerewt <devnull@localhost>
Thu, 12 Dec 1996 03:21:00 +0000 (03:21 +0000)
CVS patchset: 1224
CVS date: 1996/12/12 03:21:00

rpm2cpio.c

index 3aaa4d6..a5ba3fe 100644 (file)
@@ -56,9 +56,13 @@ int main(int argc, char **argv)
         gzerror (stream, &zerror);
         if (zerror == Z_ERRNO){
            perror ("While uncompressing");
+           gzclose(stream);
            return 1;
        }
         fprintf (stderr, "rpm2cpio: zlib: %s error\n", zlib_err [-zerror]);
     }
+
+    gzclose(stream);
+
     return 0;
 }