Fix memory leaks

This commit is contained in:
Akira TAGOH 2019-07-23 10:54:36 +00:00
parent 957625bafa
commit 1a0391c099
2 changed files with 3 additions and 0 deletions

View File

@ -187,6 +187,8 @@ scanDirs (FcStrList *list, FcConfig *config, FcBool force, FcBool really_force,
ret++;
break;
}
FcStrFree (rooted_dir);
rooted_dir = NULL;
continue;
}

View File

@ -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
{