httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Jaillet" <christophe.jail...@wanadoo.fr>
Subject Question about memory in httpd
Date Sat, 03 Dec 2005 23:39:06 GMT
When going thrue the code, looking at apr_palloc and friends, one can see
that :
    * in some places (few of them) , the returned pointer is checked against
NULL
    * in other places (most of them), it is not.

I've always been told that checking return value is a good idea, (especially
with memory allocation in order to avoid disasters) so should all the
apr_palloc (and friends) calls be checked or are they special reasons in
httpd not to care about short in memory situation ?

CJ.




Mime
View raw message