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 memory from a pool

Parameters:

          p The pool to allocate from

          size The amount of memory to allocate

Returns:

          The allocated memory


The documentation does not say that it could return NULL...

- JK

Reply via email to