]> git.saurik.com Git - apt.git/commitdiff
always "delete d" in FileFd::~FileFd to coverity happy
authorMichael Vogt <mvo@debian.org>
Thu, 25 Jul 2013 18:14:31 +0000 (20:14 +0200)
committerMichael Vogt <mvo@debian.org>
Thu, 25 Jul 2013 18:14:31 +0000 (20:14 +0200)
apt-pkg/contrib/fileutl.cc

index 0f88923cfacfe9f3408e191f417252faf0313329..edf612810da933633c01b3a2363ae2671c7e78ac 100644 (file)
@@ -1218,11 +1218,9 @@ FileFd::~FileFd()
 {
    Close();
    if (d != NULL)
 {
    Close();
    if (d != NULL)
-   {
       d->CloseDown(FileName);
       d->CloseDown(FileName);
-      delete d;
-      d = NULL;
-   }
+   delete d;
+   d = NULL;
 }
                                                                        /*}}}*/
 // FileFd::Read - Read a bit of the file                               /*{{{*/
 }
                                                                        /*}}}*/
 // FileFd::Read - Read a bit of the file                               /*{{{*/