Life after free?
Henry Spencer
henry at zoo.toronto.edu
Fri Sep 28 02:55:01 AEST 1990
In article <quan.654410256 at sol> quan at 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 at zoo.toronto.edu utzoo!henry
More information about the Comp.lang.c
mailing list