rpms/fontconfig/devel fontconfig-2.3.95-fd-leak.patch, NONE, 1.1 fontconfig.spec, 1.80, 1.81

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Jul 19 03:54:17 UTC 2006


Author: mclasen

Update of /cvs/dist/rpms/fontconfig/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv12290

Modified Files:
	fontconfig.spec 
Added Files:
	fontconfig-2.3.95-fd-leak.patch 
Log Message:
Plug a small memory leak


fontconfig-2.3.95-fd-leak.patch:
 fccache.c |    2 ++
 1 files changed, 2 insertions(+)

--- NEW FILE fontconfig-2.3.95-fd-leak.patch ---
--- fontconfig-2.3.95/src/fccache.c.fd-leak	2006-07-18 23:50:19.000000000 -0400
+++ fontconfig-2.3.95/src/fccache.c	2006-07-18 23:53:45.000000000 -0400
@@ -173,6 +173,8 @@
 	FcGlobalCacheDirDestroy (d);
     }
     FcMemFree (FC_MEM_CACHE, sizeof (FcGlobalCache));
+    if (cache->fd != -1)
+        close (cache->fd);
     free (cache);
 }
 


Index: fontconfig.spec
===================================================================
RCS file: /cvs/dist/rpms/fontconfig/devel/fontconfig.spec,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- fontconfig.spec	12 Jul 2006 17:31:28 -0000	1.80
+++ fontconfig.spec	19 Jul 2006 03:54:14 -0000	1.81
@@ -3,7 +3,7 @@
 Summary: Font configuration and customization library
 Name: fontconfig
 Version: 2.3.95
-Release: 4.1.1
+Release: 5
 License: MIT
 Group: System Environment/Libraries
 Source: http://fontconfig.org/release/fontconfig-%{version}.tar.gz
@@ -16,6 +16,7 @@
 Patch2: fontconfig-2.3.93.cvs20060211-move-user-cache.patch
 Patch3: fontconfig-2.4-cmap-parsing.patch
 Patch4: fontconfig-2.3.95-ttf-collections.patch
+Patch5: fontconfig-2.3.95-fd-leak.patch
 
 BuildRequires: freetype-devel >= %{freetype_version}
 BuildRequires: expat-devel
@@ -55,6 +56,7 @@
 %patch2 -p1 -b .move-user-cache
 %patch3 -p1 -b .cmap-parsing
 %patch4 -p1 -b .ttf-collections
+%patch5 -p1 -b .fd-leak
 
 %build
 %configure --with-add-fonts=/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/OTF
@@ -139,6 +141,9 @@
 %{_mandir}/man3/*
 
 %changelog
+* Tue Jul 18 2006 Matthias Clasen <mclasen at redhat.com> - 2.3.95-5
+- Plug a small memory leak
+
 * Wed Jul 12 2006 Jesse Keating <jkeating at redhat.com> - 2.3.95-4.1.1
 - rebuild
 




More information about the fedora-cvs-commits mailing list