From 11df7366624d124d0203e8f84d319d6dbb0f3926 Mon Sep 17 00:00:00 2001 From: radius Date: Wed, 7 Feb 2018 15:58:41 -0500 Subject: [PATCH] coverity fixes --- command.c | 1 + configuration.c | 1 + 2 files changed, 2 insertions(+) diff --git a/command.c b/command.c index 5a78e23ea7..27ebfdeb72 100644 --- a/command.c +++ b/command.c @@ -1424,6 +1424,7 @@ static bool command_event_save_core_config(void) { runloop_msg_queue_push(msg_hash_to_str(MSG_CONFIG_DIRECTORY_NOT_SET), 1, 180, true); RARCH_ERR("[Config]: %s\n", msg_hash_to_str(MSG_CONFIG_DIRECTORY_NOT_SET)); + free (config_dir); return false; } diff --git a/configuration.c b/configuration.c index 061d10dc76..44ca8c52f9 100644 --- a/configuration.c +++ b/configuration.c @@ -3355,6 +3355,7 @@ success: free(shader_directory); free(core_path); free(game_path); + free(parent_path); config_file_free(new_conf); return true; }