--- rxvt-unicode/src/ptytty.C 2006/01/19 16:40:42 1.49 +++ rxvt-unicode/src/ptytty.C 2006/01/19 16:43:36 1.50 @@ -408,8 +408,11 @@ chmod (name, RESTORE_TTY_MODE); chown (name, 0, ttyconf.gid); - if (pty >= 0) close (pty); close_tty (); + + if (pty >= 0) + close (pty); + free (name); pty = tty = -1; @@ -607,6 +610,7 @@ _exit (EXIT_SUCCESS); } } + #endif // a "factory" *g*