[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: out of memory
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 07 Oct 2002 10:08:34 -0300
The book "C - A Reference Manual" (Harbison & Steele) is considered by
many (including me) a good substitute for the ISO C standard. It says
about realloc: "If ptr is not null and size is zero, realloc returns a
null pointer and the old region is deallocated."
However, after the discussion in the list I checked the standard itself,
and it does not say that. So, the bug is in Lua :-( (and in the book ;-)
-- Roberto