Newsgroups: comp.os.msdos.djgpp From: Peter Berdeklis Subject: Re: Malloc & Co. Message-ID: Nntp-Posting-Host: chinook.physics.utoronto.ca Sender: news AT info DOT physics DOT utoronto DOT ca (System Administrator) Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: University of Toronto - Dept. of Physics In-Reply-To: Date: Wed, 8 Jan 1997 02:26:56 GMT References: Lines: 18 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On Tue, 7 Jan 1997, Eli Zaretskii wrote: > > On Mon, 6 Jan 1997, Benjamin D Chambers wrote: > > > When my program exits, is all the allocated memory on freed > > automatically, or is the system retained unless I cal 'free' on all my > > memory blocks (that I allocated with malloc & calloc)? > > All the memory is freed automatically when your program exits. What about memory locked using the go32 functions? Does it matter if it's unlocked first? Ditto for locked DOS memory (i.e. < 1Mb). --------------- Peter Berdeklis Dept. of Physics, Univ. of Toronto