From: Kristian Høgsberg Date: Sun, 15 Jan 2012 20:20:53 +0000 (-0500) Subject: tty: Close tty fd on exit X-Git-Tag: 0.85.0~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00513ab7ccb892aa71653b1e799466d85fd370db;p=platform%2Fupstream%2Fweston.git tty: Close tty fd on exit --- diff --git a/src/tty.c b/src/tty.c index d9fce08..bb979d3 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); }