apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject When to call apr_bucket_alloc_destroy?
Date Thu, 10 Mar 2005 17:21:20 GMT
Given the following sequence:

    apr_pool_create(&p, NULL);
    ba = apr_bucket_alloc_create(p);

    ... create some brigades and buckets using p, ba  ...

Do I need to explicitly invoke apr_bucket_alloc_destroy(ba)
at some point?  If so, I assume that should happen before p 
is cleaned up; do I also need to make sure that all the 
brigades are empty first?  Is it safer to register a pool
cleanup for ba before I use it to create any brigades & buckets?
What's the protocol here?

-- 
Joe Schaefer


Mime
View raw message