diff options
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2009-03-03 22:18:14 (GMT) |
---|---|---|
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2009-03-03 22:18:14 (GMT) |
commit | eacbbdfb7320e8f0f139f05560e27fefed92f53b (patch) | |
tree | 5f87b38dbab07e026a437827a072162824986ae8 /PC | |
parent | 8355155f2298ed5d45ae5381edaf953fceb06b14 (diff) | |
download | cpython-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.c | 2 |
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); |