patch: leak in FcConfigAppFontAddFile

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

 



Hi,

I believe there's a leak in FcConfigAppFontAddFile. In case of success the 
subdirs string set is not freed. Patch attached.


Simon
Index: fccfg.c
===================================================================
RCS file: /cvs/fontconfig/fontconfig/src/fccfg.c,v
retrieving revision 1.50
diff -u -b -p -r1.50 fccfg.c
--- fccfg.c	25 Jul 2005 20:39:19 -0000	1.50
+++ fccfg.c	23 Jun 2006 15:29:46 -0000
@@ -1720,6 +1720,7 @@ FcConfigAppFontAddFile (FcConfig    *con
 	}
 	FcStrListDone (sublist);
     }
+    FcStrSetDestroy (subdirs);
     return FcTrue;
 }
 

Attachment: pgpLyo3uw78Q6.pgp
Description: PGP signature

_______________________________________________
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