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
This commit is contained in:
parent
d6b8e129d7
commit
79bbbcf8a9
1
hkd.c
1
hkd.c
@ -731,6 +731,7 @@ void parse_config_file (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
hotkey_list_destroy(hotkey_list);
|
hotkey_list_destroy(hotkey_list);
|
||||||
|
hotkey_list = NULL;
|
||||||
while (exit_state >= 0) {
|
while (exit_state >= 0) {
|
||||||
int tmp = 0;
|
int tmp = 0;
|
||||||
memset(block, 0, BLOCK_SIZE + 1);
|
memset(block, 0, BLOCK_SIZE + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user