From 0369fd657888289e3b86c39074bdd4b86b09fa65 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 24 Mar 2017 01:51:29 +0100 Subject: [PATCH] Try to silence potential resource leak pointed out by Coverity --- core_info.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core_info.c b/core_info.c index 527affa1c5..747315ea47 100644 --- a/core_info.c +++ b/core_info.c @@ -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);