]> git.lizzy.rs Git - zlib.git/commit
Fix bug in gzclose() when gzwrite() runs out of memory.
authorMark Adler <madler@alumni.caltech.edu>
Tue, 2 Oct 2012 05:42:35 +0000 (22:42 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Tue, 2 Oct 2012 05:52:16 +0000 (22:52 -0700)
commitc4888637eaee189c0e21259cb87ab7e5e1d4ce76
tree8a07d3885317a18a6411d907bdddcbd3a96b5039
parent0cf495a1ca941428c0b11e2307cad760ae44993e
Fix bug in gzclose() when gzwrite() runs out of memory.

If the deflateInit2() called for the first gzwrite() failed with a
Z_MEM_ERROR, then a subsequent gzclose() would try to free an
already freed pointer.  This fixes that.
gzwrite.c