[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Hashtable data freed before pool cleanup

From: Bojan Smojver <bojan_at_rexursive.com>
Date: Fri, 08 Jan 2010 11:39:37 +1100

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
Received on 2010-01-08 03:44:28 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.