apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: apr_hash: Memory consumption
Date Sat, 19 Sep 2009 17:09:07 GMT
Neil Conway wrote:

> Unfortunately, the APR hash table API doesn't provide any means to
> report errors, so we can't easily propagate apr_pool_create() failures
> back to the client program. Presuming changing the APR hash API isn't
> an option for 1.3.x / 1.4.x, is there a better solution than just
> ignoring apr_pool_create() failures?

Hmmm. I think it's reasonable to return NULL in the failure cases, where
NULL means "out of memory".


View raw message