From: Michael Vogt Date: Thu, 25 Jul 2013 18:45:53 +0000 (+0200) Subject: fix resource leak when verification fails X-Git-Tag: 0.9.11~15^2~11 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/a9d6b0ad873fdf38e7a7077fd1f07289ad66d45a fix resource leak when verification fails --- diff --git a/apt-pkg/indexcopy.cc b/apt-pkg/indexcopy.cc index 4920efff8..7694cb1dd 100644 --- a/apt-pkg/indexcopy.cc +++ b/apt-pkg/indexcopy.cc @@ -601,6 +601,7 @@ bool SigVerify::CopyAndVerify(string CDROM,string Name,vector &SigList, (useInRelease ? inrelease.c_str() : releasegpg.c_str())); // something went wrong, don't copy the Release.gpg // FIXME: delete any existing gpg file? + delete MetaIndex; continue; }