Mail Archives: djgpp/1997/03/01/23:52:51
i remember reading the answer to this a long time ago, in a DOS
programming guide (2 years ago)...but if i recall right...ALL memory that
a program allocates (.exe/.com) under DOS will be returned, when the
program exit's.
this goes for DOS, i'm not sure about other os/s, it's better of if you
just free() all your mem before you exit the program...but as far as i
know unless you mess up something pretty bad, you'll get all your mem
back...
>I was wondering: if i allocate some memory with malloc () or an
>equivelent
>function and then quit the program without calling free (), will this
>memory be freed automatically?
- Raw text -