httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juha Korhonen <mahtav...@gmail.com>
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
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

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