blob: 3ca9fde9670dd43d9109b31d96e78199f2e054be [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From a163c81ac430cdc292add200f3e6a0c048be4d7e Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 11 Oct 2017 17:40:09 +0300
4Subject: [PATCH] src/fcxml.c: avoid double free() of filename
5
6It's also freed after bail1, so no need to do it here.
7
8Upstream-Status: Submitted [https://bugs.freedesktop.org/show_bug.cgi?id=103221]
9Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
10---
11 src/fcxml.c | 1 -
12 1 file changed, 1 deletion(-)
13
14diff --git a/src/fcxml.c b/src/fcxml.c
15index 19ce96a..edb6054 100644
16--- a/src/fcxml.c
17+++ b/src/fcxml.c
18@@ -3398,7 +3398,6 @@ FcConfigParseAndLoad (FcConfig *config,
19
20 fd = FcOpen ((char *) filename, O_RDONLY);
21 if (fd == -1) {
22- FcStrFree (filename);
23 goto bail1;
24 }
25
26--
272.14.1
28