summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-03-03 22:41:26 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-03-03 22:41:26 (GMT)
commit0c9881782bc1a72fb9fda571bee195c242160de9 (patch)
treef5bf7e2e1fab943a0c13c34d5c4feb5a2b3ceee8 /PC
parent5b26fb530bd26a63dac42383bbd8d3f4fd4e125a (diff)
downloadcpython-0c9881782bc1a72fb9fda571bee195c242160de9.zip
cpython-0c9881782bc1a72fb9fda571bee195c242160de9.tar.gz
cpython-0c9881782bc1a72fb9fda571bee195c242160de9.tar.bz2
Merged revisions 70137 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r70137 | hirokazu.yamamoto | 2009-03-04 07:18:14 +0900 | 1 line Issue #5179: Fixed subprocess handle leak on failure on windows. ........
Diffstat (limited to 'PC')
-rw-r--r--PC/_subprocess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/_subprocess.c b/PC/_subprocess.c
index 99cbd24..d0c9843 100644
--- a/PC/_subprocess.c
+++ b/PC/_subprocess.c
@@ -84,7 +84,7 @@ sp_handle_detach(sp_handle_object* self, PyObject* args)
handle = self->handle;
- self->handle = NULL;
+ self->handle = INVALID_HANDLE_VALUE;
/* note: return the current handle, as an integer */
return HANDLE_TO_PYNUM(handle);