[Poppler-bugs] [Bug 20148] pdftotext memory leak?

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Feb 17 06:08:22 PST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=20148





--- Comment #1 from Hervé Cauwelier <debian at oursours.net>  2009-02-17 06:08:21 PST ---
After having tested a modified version of pdftotext where it is reading all the
PDFs specified on the command line in a single process, I can say most if not
all of the memory leaks come from globalParams.

In a first version, globalParams was instanciated then deleted for each PDF.
After having read over 4500 PDFs, the process was using 260 MB of memory (as
given by "top").

After having moved globalParams outside the main loop, and instanciating it
only once, the same test was only using 27 MB of memory. Even 18 MB in another
test. I didn't touch anything else.

I couldn't specify it but it's poppler 0.10.4.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list