Memory leak

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Mon Dec 12 15:20:29 UTC 2005


On Sun, Dec 11, 2005 at 10:49:04AM -0500, wildberger-iRg7kjdsKiH3fQ9qLvQP4Q at public.gmane.org wrote:
> In a recent post Lennart Sorensen referred to memory leaks in Firefox Browser.
> What exactly is a memory leak in this context??

A chunk of code allocating some memory and then forgetting to free it
when it is done with it.  The longer the program runs the more memory it
is using.

It also happens a lot with X applications because some people don't pay
attension to the docs that say when you use function x to ask the X
server for something, it will allocate some memory and pass the data to
you and then you must free it.  Many people figure if they didn't
allocate it, they don't need to free it.

Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list