[poppler] [PATCH] mem leak when loading embedded font

Albert Astals Cid aacid at kde.org
Sat Jul 29 15:27:05 PDT 2006


A Dissabte 29 Juliol 2006 23:47, Krzysztof Kowalczyk va escriure:
> Hello,
Hi

> The attached patch fixes memory leak when loading an embedded font in
> Splash backend.
>
> fontsrc is not correctly unrefed and the tmpBuf from readEmbFontFile() is
> not freed.
>
> The leak is in tens of kilobytes per font (obviously depends on the size of
> embedded font file).
>
> I noticed it because I wrote a test app to stress-test and benchmark
> poppler rendering and after running on hundreds of PDF files it failed
> with "out of memory" error (on a 4GB RAM machine).
>
> In my tests, after this fix, poppler is mem-leak free.
>
> This is also filed as bug 7687
> (https://bugs.freedesktop.org/show_bug.cgi?id=7687)

Thanks for discovering this huge leak. But the patch does not completely work 
for me, can you check the bug report and answer my question?

Thanks.

Albert

>
> Regards,
>
> -- kjk (http://blog.kowalczyk.info)


More information about the poppler mailing list