]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/tty/pty.c
TTY: pty, fix tty buffers leak
[karo-tx-linux.git] / drivers / tty / pty.c
index 0ce0b3ec2bb026905a32414dfe880d26e529499d..a541ec875932bdddc9329a64a5d1bc3b977584e2 100644 (file)
@@ -408,7 +408,7 @@ static void pty_unix98_shutdown(struct tty_struct *tty)
 static void pty_cleanup(struct tty_struct *tty)
 {
        tty->port->itty = NULL;
-       kfree(tty->port);
+       tty_port_put(tty->port);
 }
 
 /* Traditional BSD devices */