From: Justin W. <phi...@gm...> - 2010-04-29 22:37:16
|
Actually, sorry I am using the libjpeg v8a version which is where the jpeg_mem_dest. I didn't realize this is the specific v6 distro list. Is there a v8 mailing list that you know of? On Thu, Apr 29, 2010 at 6:23 PM, Tom Lane <tg...@ss...> wrote: > 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 > |