From: Tom L. <tg...@ss...> - 2010-04-29 22:42:24
|
Justin Wetherell <phi...@gm...> writes: > I believe there is a memory leak in the jpeg_write_scanlines() function. The > code below takes a frame image from a dc1394 camera and turns it into a jpeg > inside a while loop. The memory usage increases 0.1% about every 5 seconds > on an embedded ARM processor with very little memory and processor power. I'm not sure what jpeg_mem_dest is --- it's not part of libjpeg 6b. I'd bet the leak is within the code installed by that. It is very highly unlikely that a leak in jpeg_write_scanlines proper would have escaped notice for all these years. (But are you sure it's a leak at all? I assume from the name that this is code meant to store the resulting JPEG data in memory. Perhaps you're just watching the accumulation of output data?) regards, tom lane |