Browse Source

fix resource leak when verification fails

Michael Vogt 13 years ago
parent
commit
a9d6b0ad87
1 changed files with 1 additions and 0 deletions
  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;
       }