tty: Clean up completely if switching vt fails
The code under the "err" label closes the file descriptor and frees the allocated memory.
This commit is contained in:
committed by
Kristian Høgsberg
parent
ef94085ff1
commit
acfb712127
Reference in New Issue
Block a user