On Sat, 2007-11-24 at 10:09 +0100, Vincent Torri wrote:

> >> From what I've heard about memory leaking, this is not unique to the
> > GTK library.  If the rumours are correct, applications like `ls` are
> > notorious for leaking memory, safe in the knowledge that the OS will
> > clean up after them.
> 
> and if someone calls 'ls' iteratively in his program ?

if you call 'ls' in a child process the "leak" happens in you child
process, so it will be cleaned up by the OS when the child process
terminates and the parent reaps it. the memory will be reassigned to
other applications, thus is *not* a leak.

in a real leak the OS cannot reassign the leaked memory because your
application is still the owner.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to