From 73f271021a8c8a67adb8dfe7e3e3672c1ff86116 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Sat, 11 Aug 2018 21:19:56 -0400 Subject: [PATCH] fix heap-use-after-free --- command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/command.c b/command.c index 12671ca67d..67a8892c2e 100644 --- a/command.c +++ b/command.c @@ -2252,6 +2252,7 @@ TODO: Add a setting for these tweaks */ break; case CMD_EVENT_CORE_INFO_DEINIT: core_info_deinit_list(); + core_info_free_current_core(); break; case CMD_EVENT_CORE_INFO_INIT: {