apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: Hashtable data freed before pool cleanup
Date Fri, 08 Jan 2010 00:39:37 GMT
On Fri, 2010-01-08 at 11:35 +1100, Bojan Smojver wrote:
> +   mem = calloc(max + 1, sizeof(*ht->array));
> +   apr_pool_cleanup_register(ht->pool, mem,
> +                             array_cleanup,apr_pool_cleanup_null); 

No, I don't think that's going to work. Again, memory may vanish before
another cleanup runs.

Hmm, back to the drawing board...

-- 
Bojan


Mime
View raw message