[Fontconfig] Patch: fix double free (spotted by Coverity)

Frederic Crozat fcrozat at mandriva.com
Mon Apr 10 08:39:07 PDT 2006


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).
-- 
Frederic Crozat <fcrozat at mandriva.com>
Mandriva
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontconfig-2.3.94-fcdirmemleaks.patch
Type: text/x-patch
Size: 2487 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20060410/3055dcad/fontconfig-2.3.94-fcdirmemleaks.bin


More information about the Fontconfig mailing list