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.
........
This commit is contained in:
Hirokazu Yamamoto 2009-03-03 22:41:26 +00:00
parent 5b26fb530b
commit 0c9881782b
3 changed files with 18 additions and 33 deletions

View file

@ -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);