From: Erik Max Francis 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: NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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)