free behavior (was: Re: Out-of-bounds pointers)

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Oct 11 16:12:52 AEST 1989


In article <17119 at rpp386.cactus.org> jfh at rpp386.cactus.org (John F. Haugh II) writes:
>Doesn't free() insure the pointer remains valid until the next
>call to malloc().

No.  The "guarantee" you cited was repealed long ago.
A free()d pointer is immediately "dead".



More information about the Comp.std.c mailing list