]> git.saurik.com Git - apt.git/commitdiff
[apt-pkg/indexcopy.cc] fix a (hypothetical) memory leak then the Release
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 8 Aug 2009 10:25:48 +0000 (12:25 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 8 Aug 2009 10:25:48 +0000 (12:25 +0200)
file not exists, patch from George Danchev, thanks! (Closes: #511556)

apt-pkg/indexcopy.cc
debian/changelog

index 15696585a513544adf04030d172527e2a197429a..0142d7dbee4a5add4b60d44fc9c08a298ecd2feb 100644 (file)
@@ -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"
index 403911833f146899f25373245a7a39d603cc3cda..408070b69d89b479169da6e942e51d12687d5e3c 100644 (file)
@@ -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