Try to silence potential resource leak pointed out by Coverity

This commit is contained in:
twinaphex 2017-03-24 01:51:29 +01:00
parent e5370c114b
commit 0369fd6578

View File

@ -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);