This commit is contained in:
twinaphex 2017-09-11 00:12:26 +02:00
parent 716a21b5ac
commit 4b2abc3334

View File

@ -875,11 +875,7 @@ bool core_info_database_supports_content_path(const char *database_path, const c
database = strdup(new_path); database = strdup(new_path);
if (string_is_empty(database)) if (string_is_empty(database))
{ goto error;
if (database)
free(database);
return false;
}
path_remove_extension(database); path_remove_extension(database);
@ -907,8 +903,7 @@ bool core_info_database_supports_content_path(const char *database_path, const c
&& !string_list_find_elem(info->supported_extensions_list, "7z")) && !string_list_find_elem(info->supported_extensions_list, "7z"))
continue; continue;
free(database); goto error;
return false;
} }
} }
} }
@ -929,7 +924,9 @@ bool core_info_database_supports_content_path(const char *database_path, const c
} }
} }
free(database); error:
if (database)
free(database);
return false; return false;
} }