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
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
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