diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2009-08-08 12:25:48 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2009-08-08 12:25:48 +0200 |
commit | cfb3d242ded4b9d3e5f4f55a3139561fe78155db (patch) | |
tree | 6997fd3f8cb42b90be8d52bfe95d773dcec2f9cc /apt-pkg | |
parent | dee2822ae83aea4c161036a892cea6622a8e8510 (diff) |
[apt-pkg/indexcopy.cc] fix a (hypothetical) memory leak then the Release
file not exists, patch from George Danchev, thanks! (Closes: #511556)
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/indexcopy.cc | 3 |
1 files changed, 3 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" |