]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix hanging pointer detected by Coverity checker.
authoramosjeffries <>
Thu, 2 Aug 2007 05:21:07 +0000 (05:21 +0000)
committeramosjeffries <>
Thu, 2 Aug 2007 05:21:07 +0000 (05:21 +0000)
src/fs/ufs/ufscommon.cc

index ccab8e80b7006cc749ce1d43a3a977368572e818..f2dfd0d402f845caeefd03c1066e53192f80e677 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ufscommon.cc,v 1.11 2007/04/28 22:26:51 hno Exp $
+ * $Id: ufscommon.cc,v 1.12 2007/08/01 23:21:07 amosjeffries Exp $
  * vim: set et : 
  *
  * DEBUG: section 47    Store Directory Routines
@@ -79,6 +79,8 @@ RebuildState::RebuildState (RefCount<UFSSwapDir> aSwapDir) : sd (aSwapDir), e(NU
 RebuildState::~RebuildState()
 {
     sd->closeTmpSwapLog();
+    /* now thats closed we DONT want to keep our secondary pointer to it */
+    log = NULL;
 }
 
 void