summaryrefslogtreecommitdiff
path: root/rpm2cpio.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-12-12 03:21:00 +0000
committerewt <devnull@localhost>1996-12-12 03:21:00 +0000
commitc3ae492d1e3bc18d8dfd84227e17d2c42bfda755 (patch)
treebd0045039f85b5330e2216d028f2bf75eb6f7def /rpm2cpio.c
parent602b387052b3dbe04b923261d06ec57ed52e3cd8 (diff)
downloadrpm-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.c4
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;
}