Red Hat Bugzilla – Bug 85342
memory leak with .pcf.gz
Last modified: 2007-04-18 12:51:43 EDT
Date: 24 Feb 2003 23:52:07 +0100
From: Pixel <email@example.com>
Cc: Frederic Crozat <firstname.lastname@example.org>
Content-Type: multipart/mixed; boundary="=-=-="
List-Id: Bugs, Wish Lists, Features, Development, etc.. <devel.freetype.org>
Subject: [Devel] patch to fix memory leak with .pcf.gz files
Problem encountered with "fc-cache -f" using more than 100MB of memory
when scanning /usr/lib/X11/fonts/75dpi + /usr/lib/X11/fonts/100dpi
ft-test-leak.c shows the problem (needs a .pcf.gz font) when setting
> FreeType.Debug: FreeType: 44376 bytes of memory leaked in 4 blocks
Simple fix included (i'm no zlib nor freetype guru, but it seems the
right thing to do :)
Created attachment 90409 [details]
Freetype leak testcase
Created attachment 90410 [details]
Bugfix patch from freetype development mailing list.
I haven't verified this bug nor tested the patch. I just spotted it on
the mailing list and thought I should bugzilla it so we can test for the
problem and fix our package if it is applicable.
I've already verified the leak, verified the fix, and checked
a patch into package CVS :-)
*** This bug has been marked as a duplicate of 85064 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.