apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject Re: apr_palloc: What about apr_pfree?
Date Fri, 27 Jun 2003 20:42:10 GMT

On Tuesday, June 24, 2003, at 08:41  PM, HOR wrote:
> 	There is a possibility of the APR team add a function like
> /** Free the given pointer.  */
> APR_DECLARE(void *) apr_pfree(apr_pool_t *pool, void *pointer)
> to the current pool system? AFAIK it is only possible to deallocate 
> memory
> deallocating the whole pool.
> 	I missing something obvious here?!

If you need malloc()/free() semantics, then you should just use
malloc() and free(). Pools are designed to minimize and amortize the 
of managing the free list in a way that performs very well with short
lived "pools" of memory allocation.


View raw message