Re: A89: Re: malloc/free question


[Prev][Next][Index][Thread]

Re: A89: Re: malloc/free question







>From: Jean Canazzi <jcanazzi@cybercable.fr>
>Reply-To: assembly-89@lists.ticalc.org
>To: assembly-89@lists.ticalc.org
>Subject: Re: A89: Re: malloc/free question
>Date: Mon, 04 Sep 2000 21:02:11 +0200
>
>
>Niklas Brunlid wrote:
> >
> > > In most C implementations, memory that is not explicitly freed by the
> > > program will be deallocated when the program terminates. Is this true 
>for
> > > TI-GCC programs? Or will it cause persistent memory leaks (lasting 
>after the
> > > program terminates) if I don't free my memory?
> >
> > I think it's true for programs that run through a shell like DoorsOS 
>which,
> > IIRC, de-allocates any memory blocks that remain when a program 
>terminates.
>UniversalOS doesn't automatically de-allocate memory block. So, a
>program should amways free itself the memory.
>
Neither does Doors (I know from sad experience =( ). It's just a good idea 
to free everything explicitly, that way you KNOW =).

Michael Cowart

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.