Bug 85342

Summary: memory leak with .pcf.gz
Product: [Retired] Red Hat Raw Hide Reporter: Mike A. Harris <mharris>
Component: freetypeAssignee: Owen Taylor <otaylor>
Status: CLOSED DUPLICATE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 18:52:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Freetype leak testcase
none
Bugfix patch from freetype development mailing list. none

Description Mike A. Harris 2003-02-28 11:58:36 UTC
Date: 24 Feb 2003 23:52:07 +0100
From: Pixel <pixel>
To: devel
Cc: Frederic Crozat <fcrozat>
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
FT_DEBUG_MEMORY:
 
> 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 :)

Comment 1 Mike A. Harris 2003-02-28 12:02:35 UTC
Created attachment 90409 [details]
Freetype leak testcase

Comment 2 Mike A. Harris 2003-02-28 12:03:31 UTC
Created attachment 90410 [details]
Bugfix patch from freetype development mailing list.

Comment 3 Mike A. Harris 2003-02-28 12:05:22 UTC
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.

Comment 4 Owen Taylor 2003-02-28 15:00:07 UTC
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 ***

Comment 5 Red Hat Bugzilla 2006-02-21 18:52:02 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.