summaryrefslogtreecommitdiff
path: root/fc-cache
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2019-07-23 10:54:36 +0000
committerAkira TAGOH <akira@tagoh.org>2019-07-23 10:54:36 +0000
commit1a0391c099e0fe03a4c877c5f5e05664737306a6 (patch)
treec2d73b6e2b5f65ead10a7c4733086fc266a4fdd0 /fc-cache
parent957625bafae3e4f86dba2543969f9e702fe76e93 (diff)
Fix memory leaks
Diffstat (limited to 'fc-cache')
-rw-r--r--fc-cache/fc-cache.c2
1 files changed, 2 insertions, 0 deletions
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 @@ scanDirs (FcStrList *list, FcConfig *config, FcBool force, FcBool really_force,
ret++;
break;
}
+ FcStrFree (rooted_dir);
+ rooted_dir = NULL;
continue;
}