commit | 1a0391c099e0fe03a4c877c5f5e05664737306a6 | [log] [tgz] |
---|---|---|
author | Akira TAGOH <akira@tagoh.org> | Tue Jul 23 10:54:36 2019 +0000 |
committer | Akira TAGOH <akira@tagoh.org> | Tue Jul 23 10:54:36 2019 +0000 |
tree | c2d73b6e2b5f65ead10a7c4733086fc266a4fdd0 | |
parent | 957625bafae3e4f86dba2543969f9e702fe76e93 [diff] |
Fix memory leaks
diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c index 1866bd7..091eed4 100644 --- a/fc-cache/fc-cache.c +++ b/fc-cache/fc-cache.c
@@ -187,6 +187,8 @@ ret++; break; } + FcStrFree (rooted_dir); + rooted_dir = NULL; continue; }
diff --git a/src/fcxml.c b/src/fcxml.c index 1591c5a..2e26e77 100644 --- a/src/fcxml.c +++ b/src/fcxml.c
@@ -1379,6 +1379,7 @@ if (parent) { retval = FcStrBuildFilename (parent, path, NULL); + FcStrFree (parent); } else {