Re: [users@httpd] dumb apr_pool question

2018-01-16 Thread Simon Walter
Thanks guys. Interesting info. It really helped. On 01/12/2018 12:12 AM, Yann Ylavic wrote: > On Thu, Jan 11, 2018 at 3:05 PM, Eric Covener wrote: >> On Thu, Jan 11, 2018 at 3:55 AM, Simon Walter wrote: >>> >>> I suppose that the pool is keeping track of all it's allocations and if >>> something

Re: [users@httpd] dumb apr_pool question

2018-01-11 Thread Yann Ylavic
On Thu, Jan 11, 2018 at 3:05 PM, Eric Covener wrote: > On Thu, Jan 11, 2018 at 3:55 AM, Simon Walter wrote: >> >> I suppose that the pool is keeping track of all it's allocations and if >> something is still referenced, it will not free it. > > No the only tracking is done by whoever manages the

Re: [users@httpd] dumb apr_pool question

2018-01-11 Thread Eric Covener
On Thu, Jan 11, 2018 at 3:55 AM, Simon Walter wrote: > Hi everyone, > > Am I correct to assume that a pool cannot be forcibly (prematurely) > freed? I was trying to understand apr_hash and wanted to free the memory > allocated for the keys and then try a apr_hash_get. You know, put it > through it

[users@httpd] dumb apr_pool question

2018-01-11 Thread Simon Walter
Hi everyone, Am I correct to assume that a pool cannot be forcibly (prematurely) freed? I was trying to understand apr_hash and wanted to free the memory allocated for the keys and then try a apr_hash_get. You know, put it through it's paces ;) I read about apr_pool_clear: "This does not actually