Fixes issue2791: subprocess.Popen.communicate leaked a file descripton until
commit8b815ab89e5bcdf10c2dc15268d6b112229f2957
authorgregory.p.smith <gregory.p.smith@6015fed2-1504-0410-9fe1-9d1591cc4771>
Mon, 26 May 2008 20:22:14 +0000 (26 20:22 +0000)
committergregory.p.smith <gregory.p.smith@6015fed2-1504-0410-9fe1-9d1591cc4771>
Mon, 26 May 2008 20:22:14 +0000 (26 20:22 +0000)
tree863cafcf8e01c57a3db615779aeaa74554db3260
parent3517c9b9ab90f25a1b03a5bb98341ce79018438e
Fixes issue2791: subprocess.Popen.communicate leaked a file descripton until
the last reference to the Popen instance was dropped.  Adding explicit
close() calls fixes it.

Candidate for backport to release25-maint.

git-svn-id: http://svn.python.org/projects/python/trunk@63724 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/subprocess.py
Lib/test/test_subprocess.py