Mail Archives: djgpp/1996/08/11/19:16:44
> > Under DOS I believe that it is not necessary to free malloced memory
> > because DOS reclaims all of the memory when the program ends. Is the
> > same true under Windoze and Windoze 95?
> It is the same under any operating system. When a program exits, all its
> memory is freed by the OS.
At the moment, I use several doubly-linked lists to store information used
by my program...and at the end, go to the trouble to free all the nodes using
recursive freeing subroutines...
Does this mean I dont have to do this? Is it still a good idea to free
memory?
Leathal.
- Raw text -