httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <cliffwool...@yahoo.com>
Subject Re: debugging heap corruption on FreeBSD
Date Thu, 01 Feb 2001 22:46:13 GMT

--- Bill Stoddard <bill@wstoddard.com> wrote:
> I suspect there is a cleanup not being deregistered. Haven't been able to pin
> point ityet.

Forgive a stupid question...

(jcw5q)~/httpd-2.0/srclib/apr-util/buckets# grep register_cleanup *.c
apr_brigade.c:    apr_register_cleanup(b->p, b, apr_brigade_cleanup,
apr_brigade_cleanup);
apr_buckets_pool.c:    apr_register_cleanup(h->p, b->data, pool_bucket_cleanup,
apr_null_cleanup);

Why does apr_brigade_create's call to apr_register_cleanup register apr_brigade_cleanup
for both regular cleanup and child cleanup, while the pool bucket's cleanup function is
only registered for regular cleanup?

--Cliff

__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Mime
View raw message