Re: {Spam?} Re: memory leak in gtk
- From: Emmanuele Bassi <ebassi gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: {Spam?} Re: memory leak in gtk
- Date: Sun, 25 Nov 2007 11:34:40 +0000
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]