Re: A89: Re: malloc/free question


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

Re: A89: Re: malloc/free question




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.



References: