[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: return value of apr_palloc

From: Ben Collins-Sussman <sussman_at_newton.collab.net>
Date: 2000-08-11 22:18:00 CEST

Jim Blandy <jimb@savonarola.red-bean.com> writes:

> According to _Writing Apache Modules_, one must check the return value
> of ap[r]_palloc. According to the code, it will always return
> non-zero, and APR_ABORT when it runs out of memory.
>
> Is it kosher for me to assume that if apr_palloc returns, it has
> succeeded?

I thought that apr_palloc just calls exit() when it fails... that's
why we never check the return value for this.
Received on Sat Oct 21 14:36:06 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.