httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juha Korhonen <>
Subject apr_palloc return value?
Date Wed, 08 Apr 2009 19:07:55 GMT
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 says:

 Allocate a block of memory from a pool


          p The pool to allocate from

          size The amount of memory to allocate


          The allocated memory

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

- JK

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message