Bill Stoddard wrote:
I've not looked at your code so I can't make specific recommendations. Just remember, code allocated with any of the apr_pool functions is freed only when that pool is reclaimed (end of a request for a request pool, shutdown of the server for pconf, etc.). mod_mem_cache uses the functions 'cache_hash', a 'de-poolized' apr_hash, for this exact reason.
Or, you could use lots of sub-pools... -- Brian Akins Lead Systems Engineer CNN Internet Technologies