Fix some potential memory leaks

This commit is contained in:
Peter Bui
2011-08-08 21:44:39 -04:00
committed by Michael Stapelberg
parent 6fb5d6e313
commit 5e06b1b21d
5 changed files with 11 additions and 3 deletions

View File

@ -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;
}