Blame SOURCES/fontconfig-fix-doublefree.patch

4a5b52
From 14c23a5715c529be175d8d6152cabd4ddad4e981 Mon Sep 17 00:00:00 2001
4a5b52
From: Akira TAGOH <akira@tagoh.org>
4a5b52
Date: Fri, 25 May 2018 15:20:10 +0900
4a5b52
Subject: [PATCH 6/7] Fix double-free
4a5b52
4a5b52
---
4a5b52
 src/fcxml.c | 3 +++
4a5b52
 1 file changed, 3 insertions(+)
4a5b52
4a5b52
diff --git a/src/fcxml.c b/src/fcxml.c
4a5b52
index c69ee50..4f984a7 100644
4a5b52
--- a/src/fcxml.c
4a5b52
+++ b/src/fcxml.c
4a5b52
@@ -2780,7 +2780,10 @@ FcParseAcceptRejectFont (FcConfigParse *parse, FcElement element)
4a5b52
 	    else
4a5b52
 	    {
4a5b52
 		if (parse->scanOnly && vstack->u.string)
4a5b52
+		{
4a5b52
 		    FcStrFree (vstack->u.string);
4a5b52
+		    vstack->tag = FcVStackNone;
4a5b52
+		}
4a5b52
 	    }
4a5b52
 	    break;
4a5b52
 	case FcVStackPattern:
4a5b52
-- 
4a5b52
2.17.1
4a5b52