Clean up status line on exit

This commit is contained in:
Drew DeVault 2018-03-29 15:19:42 -04:00
parent 0d0ab7c5ce
commit 0464a9910d
2 changed files with 9 additions and 2 deletions

View file

@ -73,6 +73,8 @@ struct status_line *status_line_init(char *cmd) {
return status;
}
void status_line_free(struct status_line *line) {
free(line);
void status_line_free(struct status_line *status) {
close(status->read_fd);
close(status->write_fd);
free(status);
}