tty: Clean up completely if switching vt fails
authorRob Bradford <rob@linux.intel.com>
Wed, 5 Dec 2012 18:47:08 +0000 (18:47 +0000)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 7 Dec 2012 03:32:37 +0000 (22:32 -0500)
commitacfb7121275dee018b221ef34b7f5fa7026675b5
tree193cd9817a9aac3196580a03fbfbb4e376c90a34
parentef94085ff1ad05c1604ad65fa9777976b8d4cdd4
tty: Clean up completely if switching vt fails

The code under the "err" label closes the file descriptor and frees the
allocated memory.
src/tty.c