From: Michael Vogt Date: Thu, 25 Jul 2013 18:14:31 +0000 (+0200) Subject: always "delete d" in FileFd::~FileFd to coverity happy X-Git-Tag: 0.9.11~15^2~19 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/96ab3c6f62becde2fc67b81c65eef2881856fd22?ds=inline always "delete d" in FileFd::~FileFd to coverity happy --- 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 /*{{{*/