]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/pty.c
pty: Fix allocation failure double free
[linux-2.6-omap-h63xx.git] / drivers / char / pty.c
index c3ab8c3110c97566bed5cf4dfea85010630895d6..3c6b7911665f80568938a7ba680568baafc7c6ed 100644 (file)
@@ -544,8 +544,6 @@ free_mem_out:
        module_put(o_tty->driver->owner);
        free_tty_struct(o_tty);
        pty_unix98_shutdown(tty);
-       free_tty_struct(tty);
-       module_put(driver->owner);
        return -ENOMEM;
 }