From c162f21f9a6ff8bd4cdd1ff4dce45161404d02b1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 13 Jan 2017 18:35:20 +0100 Subject: [PATCH] Prevent another memory leak --- core_info.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core_info.c b/core_info.c index ec198fbbfe..b178441a5e 100644 --- a/core_info.c +++ b/core_info.c @@ -357,6 +357,10 @@ static core_info_list_t *core_info_list_new(const char *path) tmp = NULL; } + if (tmp) + free(tmp); + tmp = NULL; + if (config_get_bool(conf, "supports_no_game", &tmp_bool)) core_info[i].supports_no_game = tmp_bool;