]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcxml.c
Don't leak FcValues string loaded through fcxml.c (#17661)
[fontconfig.git] / src / fcxml.c
index efdb297022ddb156bb44b4f02fc6727b7b04e974..b679dd16d773322f27cb1dde7631bcf61dfeb35f 100644 (file)
@@ -1997,8 +1997,10 @@ FcParsePatelt (FcConfigParse *parse)
        if (!FcPatternAdd (pattern, name, value, FcTrue))
        {
            FcConfigMessage (parse, FcSevereError, "out of memory");
+            FcValueDestroy(value);
            break;
        }
+        FcValueDestroy(value);
     }
 
     FcVStackPushPattern (parse, pattern);