Don't leak header in non-error case (Coverity defect #1825).
reviewed by: plam
This commit is contained in:
parent
65448e8b2a
commit
c814c301ee
|
@ -1,3 +1,9 @@
|
||||||
|
2006-04-10 Frederic Crozat <fcrozat@mandriva.com>
|
||||||
|
reviewed by: plam
|
||||||
|
|
||||||
|
* src/fccache.c: (FcGlobalCacheSave):
|
||||||
|
Don't leak header in non-error case (Coverity defect #1825).
|
||||||
|
|
||||||
2006-04-10 Frederic Crozat <fcrozat@mandriva.com>
|
2006-04-10 Frederic Crozat <fcrozat@mandriva.com>
|
||||||
reviewed by: plam
|
reviewed by: plam
|
||||||
|
|
||||||
|
|
|
@ -501,6 +501,8 @@ FcGlobalCacheSave (FcGlobalCache *cache,
|
||||||
if (!FcCacheWriteString (fd, header))
|
if (!FcCacheWriteString (fd, header))
|
||||||
goto bail4;
|
goto bail4;
|
||||||
|
|
||||||
|
free (header);
|
||||||
|
|
||||||
for (dir = cache->dirs; dir; dir = dir->next)
|
for (dir = cache->dirs; dir; dir = dir->next)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in New Issue