mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-31 15:23:35 +00:00
Try to silence potential resource leak pointed out by Coverity
This commit is contained in:
parent
e5370c114b
commit
0369fd6578
@ -836,7 +836,11 @@ bool core_info_database_supports_content_path(const char *database_path, const c
|
||||
database = strdup(new_path);
|
||||
|
||||
if (string_is_empty(database))
|
||||
{
|
||||
if (database)
|
||||
free(database);
|
||||
return false;
|
||||
}
|
||||
|
||||
path_remove_extension(database);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user