mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +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);
|
free(tmp);
|
||||||
tmp = NULL;
|
tmp = NULL;
|
||||||
}
|
}
|
||||||
|
if (tmp)
|
||||||
|
free(tmp);
|
||||||
|
tmp = NULL;
|
||||||
if (config_get_bool(config, opt_key , &tmp_bool))
|
if (config_get_bool(config, opt_key , &tmp_bool))
|
||||||
info->firmware[c].optional = tmp_bool;
|
info->firmware[c].optional = tmp_bool;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user