Explorar o código

always "delete d" in FileFd::~FileFd to coverity happy

Michael Vogt %!s(int64=13) %!d(string=hai) anos
pai
achega
96ab3c6f62
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      apt-pkg/contrib/fileutl.cc

+ 2 - 4
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				/*{{{*/