]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
assert on double cbdataFree()
authorhno <>
Wed, 16 Jul 2003 13:18:16 +0000 (13:18 +0000)
committerhno <>
Wed, 16 Jul 2003 13:18:16 +0000 (13:18 +0000)
src/cbdata.cc

index d893c552789abe6e27c9a30c553188dbe070935b..01f1de82e23f3d28a2f7f3b997abcdb24350acfe 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cbdata.cc,v 1.58 2003/07/14 10:36:42 robertc Exp $
+ * $Id: cbdata.cc,v 1.59 2003/07/16 07:18:16 hno Exp $
  *
  * DEBUG: section 45    Callback Data Registry
  * ORIGINAL AUTHOR: Duane Wessels
@@ -277,6 +277,7 @@ cbdataInternalFree(void *p)
 #endif
 
     c->check();
+    assert(c->valid);
     c->valid = 0;
 #if CBDATA_DEBUG