]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Added missing cbdata debugging so that find-alive.pl can find cbdata leaks.
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 27 Jul 2012 04:08:16 +0000 (22:08 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 27 Jul 2012 04:08:16 +0000 (22:08 -0600)
scripts/find-alive.pl
src/cbdata.cc

index 588a293d1db98ceaf37926a1c96476dfc4547777..d0b3474bbf5b0b37ea07c433a8472fc8a5519cac 100755 (executable)
@@ -48,7 +48,7 @@ my %Pairs = (
                'HttpStateData (\S+) destroyed',
        ],
        cbdata => [
-               'HttpStateData (\S+) created',
+               'cbdataAlloc: (\S+)',
                'cbdataFree: Freeing (\S+)',
        ],
        FD => [
index 54ee8e616159cc89cb09af0b08c2e3a1c14ca669..4ae295fa3f1ca88ac71e2fbc6c7a5f2a2003a4fb 100644 (file)
@@ -319,6 +319,8 @@ cbdataInternalAlloc(cbdata_type type)
     c->addHistory("Alloc", file, line);
     dlinkAdd(c, &c->link, &cbdataEntries);
     debugs(45, 3, "cbdataAlloc: " << p << " " << file << ":" << line);
+#else
+    debugs(45, 9, "cbdataAlloc: " << p);
 #endif
 
     return p;