Fix memory leaks
This commit is contained in:
parent
957625bafa
commit
1a0391c099
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue