This is the mail archive of the
cygwin-apps-cvs
mailing list for the cygwin-apps project.
setup ChangeLog compress.cc compress_bz.cc com ...
- From: cwilson at sourceware dot org
- To: cygwin-apps-cvs at sourceware dot org
- Date: 9 Jul 2008 01:44:19 -0000
- Subject: setup ChangeLog compress.cc compress_bz.cc com ...
CVSROOT: /cvs/cygwin-apps
Module name: setup
Changes by: cwilson@sourceware.org 2008-07-09 01:44:19
Modified files:
. : ChangeLog compress.cc compress_bz.cc
compress_bz.h compress_gz.cc compress_gz.h
Log message:
Fix memory leak in compress::decompress().
2008-06-29 Charles Wilson <cygwin@cwilson.fastmail.fm>
* compress.cc (compress::decompress): clean up concrete
decompressor objects on failure -- but in that case, do
NOT destroy original io_stream.
* compress_bz.h (compress_bz::release_original): new method.
(owns_original): new member variable.
* compress_bz.cc (compress_bz::release_original): new method.
(compress_bz::compress_bz): take ownership of parent by default.
(compress_bz::~compress_bz): only delete original if
owns_original is true.
* compress_gz.h (compress_gz::release_original): new method.
(owns_original): new member variable.
* compress_gz.cc (compress_gz::release_original): new method.
(compress_gz::construct): take ownership of parent by default.
(compress_gz::~compress_gz): only delete original if
owns_original is true.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/ChangeLog.diff?cvsroot=cygwin-apps&r1=2.598&r2=2.599
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress.cc.diff?cvsroot=cygwin-apps&r1=2.4&r2=2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_bz.cc.diff?cvsroot=cygwin-apps&r1=2.12&r2=2.13
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_bz.h.diff?cvsroot=cygwin-apps&r1=2.9&r2=2.10
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_gz.cc.diff?cvsroot=cygwin-apps&r1=2.12&r2=2.13
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_gz.h.diff?cvsroot=cygwin-apps&r1=2.6&r2=2.7