Patch: file descriptor leak in fccache.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



My FC5 desktop is running fontconfig-2.3.94-1 and I found that many of
my KDE desktop programs had a leaked file descriptor pointing to
~/.fonts.cache-2. The attached patch seems to fix the problem.

	Jon

--- fontconfig-2.3.94/src/fccache.c.fdleak	2006-07-19 01:07:03.000000000 +0100
+++ fontconfig-2.3.94/src/fccache.c	2006-07-19 01:52:49.000000000 +0100
@@ -169,6 +169,8 @@
 	FcGlobalCacheDirDestroy (d);
     }
     FcMemFree (FC_MEM_CACHE, sizeof (FcGlobalCache));
+    if (cache->fd != -1)
+	close(cache->fd);
     free (cache);
 }
 
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux