patches/Python-08-pty-leak.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 9619 ec2d81c0a557
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.

--- Python/Lib/pty.py	Sun Aug  1 20:55:18 2004
+++ Python/Lib/pty.py.new	Tue Jan 30 20:48:33 2007
@@ -117,6 +117,8 @@
         os.dup2(slave_fd, STDERR_FILENO)
         if (slave_fd > STDERR_FILENO):
             os.close (slave_fd)
+    else:
+       os.close(slave_fd)
 
     # Parent and child process.
     return pid, master_fd