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

fix resource leak when verification fails

Michael Vogt лет назад: 13
Родитель
Сommit
a9d6b0ad87
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      apt-pkg/indexcopy.cc

+ 1 - 0
apt-pkg/indexcopy.cc

@@ -601,6 +601,7 @@ bool SigVerify::CopyAndVerify(string CDROM,string Name,vector<string> &SigList,
 			 (useInRelease ? inrelease.c_str() : releasegpg.c_str()));
 			 (useInRelease ? inrelease.c_str() : releasegpg.c_str()));
 	 // something went wrong, don't copy the Release.gpg
 	 // something went wrong, don't copy the Release.gpg
 	 // FIXME: delete any existing gpg file?
 	 // FIXME: delete any existing gpg file?
+	 delete MetaIndex;
 	 continue;
 	 continue;
       }
       }