Newsgroups: comp.lang.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: Life after free? Message-ID: <1990Sep27.165501.1769@zoo.toronto.edu> Organization: U of Toronto Zoology References: Date: Thu, 27 Sep 90 16:55:01 GMT In article quan@sol.surv.utas.oz (Stephen Quan) writes: > free(tmp); > return tmp; >} > >Any comments on free-ing tmp before it is return-ed? Yes: don't do it. On some implementations in some circumstances, this will accidentally work. It's not dependable. -- TCP/IP: handling tomorrow's loads today| Henry Spencer at U of Toronto Zoology OSI: handling yesterday's loads someday| henry@zoo.toronto.edu utzoo!henry