diff options
-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; } |