summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-08-08 12:25:48 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-08-08 12:25:48 +0200
commitcfb3d242ded4b9d3e5f4f55a3139561fe78155db (patch)
tree6997fd3f8cb42b90be8d52bfe95d773dcec2f9cc
parentdee2822ae83aea4c161036a892cea6622a8e8510 (diff)
[apt-pkg/indexcopy.cc] fix a (hypothetical) memory leak then the Release
file not exists, patch from George Danchev, thanks! (Closes: #511556)
-rw-r--r--apt-pkg/indexcopy.cc3
-rw-r--r--debian/changelog3
2 files changed, 6 insertions, 0 deletions
diff --git a/apt-pkg/indexcopy.cc b/apt-pkg/indexcopy.cc
index 15696585a..0142d7dbe 100644
--- a/apt-pkg/indexcopy.cc
+++ b/apt-pkg/indexcopy.cc
@@ -592,7 +592,10 @@ bool SigVerify::CopyAndVerify(string CDROM,string Name,vector<string> &SigList,
// a Release.gpg without a Release should never happen
if(!FileExists(*I+"Release"))
+ {
+ delete MetaIndex;
continue;
+ }
// verify the gpg signature of "Release"
diff --git a/debian/changelog b/debian/changelog
index 403911833..408070b69 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,9 @@ apt (0.7.22.3) unstable; urgency=low
* apt-pkg/contrib/strutl.cc:
- enable thousand separator according to the current locale
(by Luca Bruno, Closes: #223712)
+ * apt-pkg/indexcopy.cc:
+ - fix a (hypothetical) memory leak then the Release file not exists
+ (by George Danchev, Closes: #511556)
-- David Kalnischkies <david@kalnischkies.com> Sat, 08 Aug 2009 09:40:08 +0200