tty: Close tty fd on exit

This commit is contained in:
Kristian Høgsberg 2012-01-15 15:20:53 -05:00
parent 1201b75bec
commit 00513ab7cc

View File

@ -185,5 +185,7 @@ tty_destroy(struct tty *tty)
fprintf(stderr, fprintf(stderr,
"could not restore terminal to canonical mode\n"); "could not restore terminal to canonical mode\n");
close(tty->fd);
free(tty); free(tty);
} }