www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/11/19:16:44

From: Leath Muller <leathm AT gbrmpa DOT gov DOT au>
Message-Id: <199608112310.JAA16484@gbrmpa.gov.au>
Subject: Re: Freeing and not freeing Windoze memory
To: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
Date: Mon, 12 Aug 1996 09:10:33 +1000 (EST)
Cc: djgpp AT delorie DOT com
In-Reply-To: <Pine.SUN.3.91.960811111912.24678T-100000@is> from "Eli Zaretskii" at Aug 11, 96 11:20:25 am

> > 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019