httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: malloc error checking
Date Thu, 12 Sep 1996 21:46:28 GMT
Jim Jagielski wrote:
> 
> Hmmm... I've seen a few places where it's assumed that malloc() will
> be successful. One particularly disturbing place is alloc.c where
> if malloc_block()'s malloc fails, it simply returns NULL. Note that
> new_block() doesn't check the return value.
> 
> Shouldn't we adjust things so if malloc()s fail, we perror and exit?

I believe this has already been agreed. We've just failed to implement it.

Cheers,

Ben.

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.            Apache Group member (http://www.apache.org)

Mime
View raw message