From: Alex Rousskov Date: Fri, 27 Jul 2012 04:08:16 +0000 (-0600) Subject: Added missing cbdata debugging so that find-alive.pl can find cbdata leaks. X-Git-Tag: SQUID_3_2_0_19~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3951d644143bcc6c7bbd5433c823bfadc360b5a;p=thirdparty%2Fsquid.git Added missing cbdata debugging so that find-alive.pl can find cbdata leaks. --- diff --git a/scripts/find-alive.pl b/scripts/find-alive.pl index 588a293d1d..d0b3474bbf 100755 --- a/scripts/find-alive.pl +++ b/scripts/find-alive.pl @@ -48,7 +48,7 @@ my %Pairs = ( 'HttpStateData (\S+) destroyed', ], cbdata => [ - 'HttpStateData (\S+) created', + 'cbdataAlloc: (\S+)', 'cbdataFree: Freeing (\S+)', ], FD => [ diff --git a/src/cbdata.cc b/src/cbdata.cc index 54ee8e6161..4ae295fa3f 100644 --- a/src/cbdata.cc +++ b/src/cbdata.cc @@ -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;