mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-11 05:16:12 +00:00
Prevent memory leak
This commit is contained in:
parent
a4523e0b2b
commit
a859d2dc3f
@ -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…
x
Reference in New Issue
Block a user