mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Fix two potential memory leaks
This commit is contained in:
parent
5f50e2b33a
commit
1e6b8385fd
@ -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)))
|
||||
{
|
||||
|
@ -14145,6 +14145,8 @@ finish:
|
||||
free(system_label);
|
||||
if (json_buffer)
|
||||
free(json_buffer);
|
||||
if (state_son)
|
||||
free(state_son);
|
||||
return !error;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user