summaryrefslogtreecommitdiff
path: root/apt-pkg/indexcopy.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-07-25 20:45:53 +0200
committerMichael Vogt <mvo@debian.org>2013-07-25 20:45:53 +0200
commita9d6b0ad873fdf38e7a7077fd1f07289ad66d45a (patch)
tree7ee6c3255023294c2b12ced559fab233caafd7cc /apt-pkg/indexcopy.cc
parent60fc4f21783fddaae481494f99ec157e08a9bfdb (diff)
fix resource leak when verification fails
Diffstat (limited to 'apt-pkg/indexcopy.cc')
-rw-r--r--apt-pkg/indexcopy.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/indexcopy.cc b/apt-pkg/indexcopy.cc
index 4920efff8..7694cb1dd 100644
--- a/apt-pkg/indexcopy.cc
+++ b/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;
}