From: Michael Vogt Date: Thu, 6 Jun 2013 16:17:14 +0000 (+0200) Subject: fix double free (closes: #711045) X-Git-Tag: 0.9.9~13 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/e3b402f40373365e169f30d276e467f708074ffc fix double free (closes: #711045) --- diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index f18e17005..46661887a 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -1424,8 +1424,11 @@ bool FileFd::Seek(unsigned long long To) return _error->Error("Reopen is only implemented for read-only files!"); } #ifdef HAVE_BZ2 - if (d->bz2 != NULL) - BZ2_bzclose(d->bz2); + if (d->bz2 != NULL) + { + BZ2_bzclose(d->bz2); + d->bz2 = NULL; + } #endif if (iFd != -1) close(iFd); diff --git a/debian/changelog b/debian/changelog index f5be97bd3..f0eb0421d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,9 @@ apt (0.9.8.2) UNRELEASED; urgency=low [ Michael Vogt ] * buildlib/apti18n.h.in: - fix build failure when building without NLS (closes: #671587) + + [ Gregoire Menuel ] + * fix double free (closes: #711045) -- Christian Perrier Thu, 16 May 2013 22:28:22 +0200