Fix two potential memory leaks

This commit is contained in:
twinaphex 2020-07-01 00:09:38 +02:00
parent 5f50e2b33a
commit 1e6b8385fd
2 changed files with 5 additions and 0 deletions

View File

@ -4124,7 +4124,10 @@ static bool menu_displaylist_push_internal(
if (menu_displaylist_ctl(
DISPLAYLIST_DATABASE_PLAYLISTS, info))
{
free(info->path);
return true;
}
}
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_ADD_TAB)))
{

View File

@ -14145,6 +14145,8 @@ finish:
free(system_label);
if (json_buffer)
free(json_buffer);
if (state_son)
free(state_son);
return !error;
}
#endif