diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-01-15 15:20:53 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-01-15 15:25:05 -0500 |
commit | 00513ab7ccb892aa71653b1e799466d85fd370db (patch) | |
tree | e520fd1007df3647b6117e4d144d755d63943195 /src/tty.c | |
parent | 1201b75bec3404a7e250b21928fe748e2d51813a (diff) | |
download | weston-00513ab7ccb892aa71653b1e799466d85fd370db.tar.gz weston-00513ab7ccb892aa71653b1e799466d85fd370db.tar.bz2 weston-00513ab7ccb892aa71653b1e799466d85fd370db.zip |
tty: Close tty fd on exit
Diffstat (limited to 'src/tty.c')
-rw-r--r-- | src/tty.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -185,5 +185,7 @@ tty_destroy(struct tty *tty) fprintf(stderr, "could not restore terminal to canonical mode\n"); + close(tty->fd); + free(tty); } |