Mail Archives: djgpp/1997/03/02/02:53:27
Cristovao Braga wrote:
>
> I was wondering: if I allocate some memory with malloc () or an equivalent
> function and then quit the program without calling free (), will this
> memory be freed automatically?
Yes. It's automatically freed by the program's exit code. There are
some purists who say you should free it anyway - I'm ambivalent on the
issue. :)
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| Descent 2: The Infinite Abyss - The greatest Internet game of all |
| time just got better! This time, you're going all the way down...|
---------------------------------------------------------------------
- Raw text -