Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!cica!iuvax!att!dptg!ulysses!andante!alice!ark From: ark@alice.att.com (Andrew Koenig) Newsgroups: comp.lang.c Subject: Re: Life after free? Keywords: free malloc Message-ID: <11409@alice.att.com> Date: 30 Sep 90 14:22:39 GMT References: <5620@stpstn.UUCP> Distribution: comp Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 12 In article <5620@stpstn.UUCP>, lerman@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@europa.att.com