summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-03-03 22:18:14 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-03-03 22:18:14 (GMT)
commiteacbbdfb7320e8f0f139f05560e27fefed92f53b (patch)
tree5f87b38dbab07e026a437827a072162824986ae8 /PC
parent8355155f2298ed5d45ae5381edaf953fceb06b14 (diff)
downloadcpython-eacbbdfb7320e8f0f139f05560e27fefed92f53b.zip
cpython-eacbbdfb7320e8f0f139f05560e27fefed92f53b.tar.gz
cpython-eacbbdfb7320e8f0f139f05560e27fefed92f53b.tar.bz2
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 f2c6b92..bb240e1 100644
--- a/PC/_subprocess.c
+++ b/PC/_subprocess.c
@@ -87,7 +87,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);