]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Properly clean up members in UFSSwapDir.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 23 Jan 2013 16:25:51 +0000 (17:25 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 23 Jan 2013 16:25:51 +0000 (17:25 +0100)
Coverity Scan issue nr. 740338

src/fs/ufs/UFSSwapDir.cc

index 99d9011967db3de6520f4b026c375f706cae9092..9a1094d7dd9829ce8d73f32dfe9e0512927b93f2 100644 (file)
@@ -341,15 +341,10 @@ Fs::Ufs::UFSSwapDir::~UFSSwapDir()
         file_close(swaplog_fd);
         swaplog_fd = -1;
     }
-
-    delete map;
-
-    if (IO)
-        delete IO;
-
-    IO = NULL;
-
     safe_free(ioType);
+    delete map;
+    delete IO;
+    delete currentIOOptions;
 }
 
 void