diff options
author | ewt <devnull@localhost> | 1996-12-12 03:21:00 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1996-12-12 03:21:00 +0000 |
commit | c3ae492d1e3bc18d8dfd84227e17d2c42bfda755 (patch) | |
tree | bd0045039f85b5330e2216d028f2bf75eb6f7def /rpm2cpio.c | |
parent | 602b387052b3dbe04b923261d06ec57ed52e3cd8 (diff) | |
download | rpm-c3ae492d1e3bc18d8dfd84227e17d2c42bfda755.tar.gz rpm-c3ae492d1e3bc18d8dfd84227e17d2c42bfda755.tar.bz2 rpm-c3ae492d1e3bc18d8dfd84227e17d2c42bfda755.zip |
minor cleanups -- the gz stream was never getting closed
CVS patchset: 1224
CVS date: 1996/12/12 03:21:00
Diffstat (limited to 'rpm2cpio.c')
-rw-r--r-- | rpm2cpio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rpm2cpio.c b/rpm2cpio.c index 3aaa4d6b5..a5ba3fef4 100644 --- a/rpm2cpio.c +++ b/rpm2cpio.c @@ -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; } |