www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/16/02:45:11

Xref: news2.mv.net comp.os.msdos.djgpp:7343
From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: malloc and free question
Date: Thu, 15 Aug 1996 18:28:05 -0700
Organization: Alcyone Systems
Lines: 13
Message-ID: <3213CEA5.562A40BF@alcyone.com>
References: <Dw3Kr1 DOT Drz AT interactive DOT net>
NNTP-Posting-Host: annex-p134.meer.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

J.J. Pierson wrote:

> This is probably more of a general C question, but since I'm using DJGPP,
> I figured I'd ask it here in case DJGPP handles it a specific way.
> If I use malloc, do I have to use free to free the memory for them when I
> quit the program, or does it do that automatically? Thanks in advance.

Many people consider it good style (including me), but it is not necessary.

-- 
Erik Max Francis, &tSftDotIotE   http://www.alcyone.com/max/   max AT alcyone DOT com
San Jose, California   ICBM 37 20 07 N 121 53 38 W   R^4: the 4th R is respect
War's a game which were their subjects wise/Kings would not play at. -- Cowper

- Raw text -


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