diff options
author | Michael Vogt <mvo@debian.org> | 2013-07-25 20:14:31 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-07-25 20:14:31 +0200 |
commit | 96ab3c6f62becde2fc67b81c65eef2881856fd22 (patch) | |
tree | a11ed673e43eae90df0ad57db3d2e4f638e305b8 /apt-pkg/contrib | |
parent | f39daeb1f66b8910f91274055bf07c3d008cdc50 (diff) |
always "delete d" in FileFd::~FileFd to coverity happy
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r-- | apt-pkg/contrib/fileutl.cc | 6 |
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 /*{{{*/ |