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; }