Pārlūkot izejas kodu

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

Michael Vogt 13 gadi atpakaļ
vecāks
revīzija
96ab3c6f62
1 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  1. 2 4
      apt-pkg/contrib/fileutl.cc

+ 2 - 4
apt-pkg/contrib/fileutl.cc

@@ -1218,11 +1218,9 @@ FileFd::~FileFd()
 {
 {
    Close();
    Close();
    if (d != NULL)
    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				/*{{{*/