mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Prevent memory leak
This commit is contained in:
parent
a4523e0b2b
commit
a859d2dc3f
1 changed files with 3 additions and 0 deletions
|
@ -126,6 +126,9 @@ static void core_info_list_resolve_all_firmware(
|
|||
free(tmp);
|
||||
tmp = NULL;
|
||||
}
|
||||
if (tmp)
|
||||
free(tmp);
|
||||
tmp = NULL;
|
||||
if (config_get_bool(config, opt_key , &tmp_bool))
|
||||
info->firmware[c].optional = tmp_bool;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue