Просмотр исходного кода

[apt-pkg/indexcopy.cc] fix a (hypothetical) memory leak then the Release
file not exists, patch from George Danchev, thanks! (Closes: #511556)

David Kalnischkies лет назад: 17
Родитель
Сommit
cfb3d242de
2 измененных файлов с 6 добавлено и 0 удалено
  1. 3 0
      apt-pkg/indexcopy.cc
  2. 3 0
      debian/changelog

+ 3 - 0
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"

+ 3 - 0
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