diff --git a/src/tty.c b/src/tty.c index d9fce085..bb979d3a 100644 --- a/src/tty.c +++ b/src/tty.c @@ -185,5 +185,7 @@ tty_destroy(struct tty *tty) fprintf(stderr, "could not restore terminal to canonical mode\n"); + close(tty->fd); + free(tty); }