mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Merge pull request #4069 from lioncash/leak
core_info: Fix a leak in core_info_database_supports_content_path
This commit is contained in:
commit
a240fa3d64
@ -757,11 +757,16 @@ bool core_info_database_supports_content_path(const char *database_path, const c
|
||||
const core_info_t *info = &core_info_curr_list->list[i];
|
||||
|
||||
if (string_list_find_elem(info->databases_list, database))
|
||||
{
|
||||
if (string_list_find_elem(info->supported_extensions_list, "zip") ||
|
||||
string_list_find_elem(info->supported_extensions_list, "7z"))
|
||||
{
|
||||
free(database);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < core_info_curr_list->count; i++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user