projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
602b387
)
minor cleanups -- the gz stream was never getting closed
author
ewt
<devnull@localhost>
Thu, 12 Dec 1996 03:21:00 +0000
(
03:21
+0000)
committer
ewt
<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
patch
|
blob
|
history
diff --git
a/rpm2cpio.c
b/rpm2cpio.c
index
3aaa4d6
..
a5ba3fe
100644
(file)
--- 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;
}