Commit 1a0391c0 authored by Akira TAGOH's avatar Akira TAGOH

Fix memory leaks

parent 957625ba
Pipeline #50587 passed with stage
in 28 minutes and 51 seconds
......@@ -187,6 +187,8 @@ scanDirs (FcStrList *list, FcConfig *config, FcBool force, FcBool really_force,
ret++;
break;
}
FcStrFree (rooted_dir);
rooted_dir = NULL;
continue;
}
......
......@@ -1379,6 +1379,7 @@ _get_real_path_from_prefix(FcConfigParse *parse, const FcChar8 *path, const FcCh
if (parent)
{
retval = FcStrBuildFilename (parent, path, NULL);
FcStrFree (parent);
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment