From: Dead_and_gone Newsgroups: comp.os.msdos.djgpp Subject: Re: Malloc & Co. Date: Fri, 10 Jan 1997 10:02:54 -0600 Organization: Novia Internetworking <> 33.6kbps dialup; 402/390-2NET Lines: 11 Message-ID: <32D6682E.5C05@novia.net> References: <19970106 DOT 194216 DOT 4975 DOT 0 DOT chambersb AT juno DOT com> NNTP-Posting-Host: shadowwing.novia.net 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 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)? > Thanx in advance, > > ..Chambers I am not positive but I belive if you don't call free() you will create a "memory leak". Even if it does free the memory automatically it is a better idea to go ahead and call free().