From 79bbbcf8a95dc79effd7e9e18be80bc651d883d5 Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Tue, 22 Sep 2020 23:45:46 +0200 Subject: [PATCH] fix memory allocation bug when receiving SIGUSR1 hkd would try to allocate the new hotkey list in the old space which could lead to errors --- hkd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hkd.c b/hkd.c index 9ca9db9..4a88afc 100644 --- a/hkd.c +++ b/hkd.c @@ -731,6 +731,7 @@ void parse_config_file (void) } hotkey_list_destroy(hotkey_list); + hotkey_list = NULL; while (exit_state >= 0) { int tmp = 0; memset(block, 0, BLOCK_SIZE + 1);