Life after free?

Andrew Koenig ark at alice.att.com
Mon Oct 1 00:22:39 AEST 1990


In article <5620 at stpstn.UUCP>, lerman at stpstn.UUCP (Ken Lerman) writes:

> Not only is it sensible, the semantics of free require it.  The item
> freed is guaranteed to be valid until the next call to malloc,
> realloc, ...

This statement was true ten years ago, but is false today.

You can find more detail in `C Traps and Pitfalls,' page 95.
-- 
				--Andrew Koenig
				  ark at europa.att.com



More information about the Comp.lang.c mailing list