apr_palloc return value?

2009-04-08 Thread Juha Korhonen
Hi, when I use apr_palloc function to allocate memory, should I check the return value to make sure that I really got some memory? Is it possible that return value is NULL? Documentation about the apr_palloc at http://apr.apache.org/docs/apr/0.9/group__apr__pools.html says: Allocate a block of

Re: apr_palloc return value?

2009-04-08 Thread Nick Kew
On Wed, 8 Apr 2009 22:07:55 +0300 Juha Korhonen mahtav...@gmail.com wrote: Hi, when I use apr_palloc function to allocate memory, should I check the return value to make sure that I really got some memory? Yes. Sort-of. That is to say, yes you should, but it's common practice to omit the

Re: apr_palloc return value?

2009-04-08 Thread Dennis J.
On 04/08/2009 10:13 PM, Nick Kew wrote: On Wed, 8 Apr 2009 22:07:55 +0300 Juha Korhonenmahtav...@gmail.com wrote: Hi, when I use apr_palloc function to allocate memory, should I check the return value to make sure that I really got some memory? Yes. Sort-of. That is to say, yes you