Explorar el Código

fix resource leak when verification fails

Michael Vogt hace 13 años
padre
commit
a9d6b0ad87
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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()));
 	 // something went wrong, don't copy the Release.gpg
 	 // FIXME: delete any existing gpg file?
+	 delete MetaIndex;
 	 continue;
       }