On Sat, Oct 18, 2008 at 11:13, Vincent Torri <[EMAIL PROTECTED]> wrote:
>
> so, the case where the program gets informations continuously from internet
> and stores it in a single linked list, and the program does not free it
> (because it needs it during all its execution), except when it finishes, is
> considered as a mem leak ? It is a portion of program that is repeatedly
> executed without freeing its memory.
>
> It seems that we do not have the same definition of memory leak :)
I think you understand very well what I meant, but I'll indulge you ;)
Difference between accumulating data and a memory leak is that:
a) accumulated data is still needed
b) leaked data is no longer needed, but is never freed
Program may count on OS to clean up its data (and some of my programs do
that, of course) but if program runs for several days and accumulates data
without any later need for it, then it's a memory leak. It doesn't have to
be OS forgetting to clean up memory, it can be the application forgetting to
clean up its memory.
You claimed that ONLY this thing when OS forgets to clean memory up is
called a memory leak.
I claim that IN ADDITION to that, when APPLICATION forgets to clean up
memory DURING ITS RUNTIME, it's also memory leak.
And of course cleanup means to free memory that is no longer NEEDED.
--
Regards,
Ivan Vučica
OBJECT Networks :: www.objectnetworks.net
Cateia Games :: www.cateia.com
Zagrebački računalni savez :: www.zrs.hr
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel