diff options
author | Ben Wagner <bungeman@chromium.org> | 2020-12-11 11:54:43 -0500 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2020-12-14 10:54:11 +0000 |
commit | d55eaa6b3148691f32ec19c5c36dfc8818a6385f (patch) | |
tree | 7dd4f60b438a7139d56be0fa7b2f2df0f0a61e87 /src/fcxml.c | |
parent | c00a51f4c8ea7d548a069bc5e94a1aceabf5249a (diff) | |
download | fontconfig-d55eaa6b3148691f32ec19c5c36dfc8818a6385f.tar.gz |
Fix leaks in fcxml.c, fc-match.c, and tests.
Fix leaks reported by AddressSanitizer when running 'make check'.
Diffstat (limited to 'src/fcxml.c')
-rw-r--r-- | src/fcxml.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fcxml.c b/src/fcxml.c index 3f22581..9efe157 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -2307,7 +2307,9 @@ FcParseCacheDir (FcConfigParse *parse) if (data[0] == 0) { FcConfigMessage (parse, FcSevereWarning, "empty cache directory name ignored"); - return; + FcStrFree (data); + data = prefix; + goto bail; } if (prefix) { |