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 cost
of managing the free list in a way that performs very well with short
lived "pools" of memory allocation.
-aaron
