2006-07-19 Jon Burgess (jburgess@uklinux.net) reviewed by: plam

Fix file-descriptor leak in FcGlobalCacheDestroy.
This commit is contained in:
Patrick Lam 2006-07-19 02:14:28 +00:00
parent 1c14f2d963
commit 62a4a8459a
2 changed files with 9 additions and 0 deletions

View File

@ -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

View 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);
}