delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/08/12:46:07

Newsgroups: comp.os.msdos.djgpp
From: Peter Berdeklis <peter AT atmosp DOT physics DOT utoronto DOT ca>
Subject: Re: Malloc & Co.
Message-ID: <Pine.SGI.3.91.970107212525.5302B-100000@chinook.physics.utoronto.ca>
Nntp-Posting-Host: chinook.physics.utoronto.ca
Sender: news AT info DOT physics DOT utoronto DOT ca (System Administrator)
Mime-Version: 1.0
Organization: University of Toronto - Dept. of Physics
In-Reply-To: <Pine.SUN.3.91.970107084641.26754G-100000@is>
Date: Wed, 8 Jan 1997 02:26:56 GMT
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970107084641 DOT 26754G-100000 AT is>
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

- Raw text -


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