Fix a memory leak
authorAkira TAGOH <akira@tagoh.org>
Tue, 11 Dec 2012 03:38:42 +0000 (12:38 +0900)
committerAkira TAGOH <akira@tagoh.org>
Tue, 11 Dec 2012 03:38:42 +0000 (12:38 +0900)
src/fcxml.c

index 3a94af6..c9d41df 100644 (file)
@@ -1861,6 +1861,7 @@ FcParseDir (FcConfigParse *parse)
     if (!data)
     {
        FcConfigMessage (parse, FcSevereError, "out of memory");
+       data = prefix;
        goto bail;
     }
     if (prefix)