]> git.wh0rd.org Git - fontconfig.git/commitdiff
2006-07-19 Jon Burgess (jburgess@uklinux.net) reviewed by: plam
authorPatrick Lam <plam@MIT.EDU>
Wed, 19 Jul 2006 02:14:28 +0000 (02:14 +0000)
committerPatrick Lam <plam@MIT.EDU>
Wed, 19 Jul 2006 02:14:28 +0000 (02:14 +0000)
Fix file-descriptor leak in FcGlobalCacheDestroy.

ChangeLog
src/fccache.c

index 992a5eec59a36a192d7d2d948eff042c0c1fc8e5..d8e64040fe341b8e154c732f623ac39ec0a3d87b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-07-19  Jon Burgess  (jburgess@uklinux.net)
+        reviewed by: plam
+
+        * src/fccache.c (FcGlobalCacheDestroy):
+
+        Fix file-descriptor leak in FcGlobalCacheDestroy.
+
 2006-05-31  Yong Li  (rigel863@gmail.com)
        reviewed by: plam, Bedhad Esfahbod
 
index 5cb49bd17fe52e8dea5b3cca1a26cc21e6279dca..a653085e1c3fce5a2bb3c6dfceda7d4194315afe 100644 (file)
@@ -173,6 +173,8 @@ FcGlobalCacheDestroy (FcGlobalCache *cache)
        FcGlobalCacheDirDestroy (d);
     }
     FcMemFree (FC_MEM_CACHE, sizeof (FcGlobalCache));
+    if (cache->fd != -1)
+       close (cache->fd);
     free (cache);
 }