summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-07-25 20:14:31 +0200
committerMichael Vogt <mvo@debian.org>2013-07-25 20:14:31 +0200
commit96ab3c6f62becde2fc67b81c65eef2881856fd22 (patch)
treea11ed673e43eae90df0ad57db3d2e4f638e305b8 /apt-pkg
parentf39daeb1f66b8910f91274055bf07c3d008cdc50 (diff)
downloadapt-96ab3c6f62becde2fc67b81c65eef2881856fd22.tar.gz
always "delete d" in FileFd::~FileFd to coverity happy
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/fileutl.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc
index 0f88923cf..edf612810 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -1218,11 +1218,9 @@ FileFd::~FileFd()
{
Close();
if (d != NULL)
- {
d->CloseDown(FileName);
- delete d;
- d = NULL;
- }
+ delete d;
+ d = NULL;
}
/*}}}*/
// FileFd::Read - Read a bit of the file /*{{{*/