[Fontconfig] Patch: fix memory leak (spotted by Coverity)

Frederic Crozat fcrozat at mandriva.com
Mon Apr 10 09:09:20 PDT 2006

Le lundi 10 avril 2006 à 11:46 -0400, Patrick Lam a écrit :
> Frederic Crozat wrote:
> > The following patch fixes memory and file descriptor leaks (Coverity
> > reports #777 and #1826) in error cases for FcDirScanConfig.
> > 
> > Please review this patch carefully, as I used goto for bail conditions
> > and tried to call free functions only one time in the FcDirScanConfig
> > code (to ease code review in the future).
> I've committed the earlier patches, but not this one yet.


Here is another memleak fix for non-error case in FcGlobalCacheSave
(Coverity report #1825).

Frederic Crozat <fcrozat at mandriva.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontconfig-2.3.94-headerleak.patch
Type: text/x-patch
Size: 1099 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20060410/42b21234/fontconfig-2.3.94-headerleak.bin

More information about the Fontconfig mailing list