delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/08/21:43:09

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: quick malloc question
Date: Sat, 08 Mar 1997 17:35:14 -0800
Organization: Alcyone Systems
Lines: 16
Message-ID: <332213D2.610E9A19@alcyone.com>
References: <B0000041587 AT datasoft DOT datasoft DOT com DOT br>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Cristovao Braga wrote:

> I was wondering: if I allocate some memory with malloc () or an
> equivalent
> function and then quit the program without calling free (), will this
> memory be freed automatically?

Yes.  All memory allocated by a program is released on exit.

-- 
       Erik Max Francis, &tSftDotIotE / email:  max AT alcyone DOT com
                     Alcyone Systems /    web:  http://www.alcyone.com/max/
San Jose, California, United States /    icbm:  37 20 07 N  121 53 38 W
                                   \
              "I am become death, / destroyer of worlds."
                                 / J. Robert Oppenheimer (quoting legend)

- Raw text -


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