Fix some potential memory leaks
This commit is contained in:
committed by
Michael Stapelberg
parent
6fb5d6e313
commit
5e06b1b21d
@ -112,7 +112,8 @@ static int handle_key_press(xcb_key_press_event_t *event) {
|
||||
}
|
||||
}
|
||||
|
||||
parse_cmd(bind->command);
|
||||
char *json_result = parse_cmd(bind->command);
|
||||
free(json_result);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user