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>
Wed, 12 Dec 2012 04:47:23 +0000 (23:47 -0500)
commitb28d8edb657b37e8a33ef40f261035e27838c9f1
tree6ef9174a02260b04e3e43a474d0c42cc58644c45
parent8104ec5dd55071ad30669592f91fe2efc134447d
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