From c3951d644143bcc6c7bbd5433c823bfadc360b5a Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Thu, 26 Jul 2012 22:08:16 -0600 Subject: [PATCH] Added missing cbdata debugging so that find-alive.pl can find cbdata leaks. --- scripts/find-alive.pl | 2 +- src/cbdata.cc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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; -- 2.47.2