From 00513ab7ccb892aa71653b1e799466d85fd370db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Sun, 15 Jan 2012 15:20:53 -0500 Subject: [PATCH] tty: Close tty fd on exit --- src/tty.c | 2 ++ 1 file changed, 2 insertions(+) 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); }