mirror of
https://github.com/python/cpython.git
synced 2025-11-08 21:52:45 +00:00
r849@spiff: Fredrik | 2005-11-09 10:00:04 +0100
fixed resource leak in _subprocess.CreateProcess when using explicit environments
This commit is contained in:
parent
f5b7fd2239
commit
bb4692b6f2
1 changed files with 3 additions and 0 deletions
|
|
@ -333,6 +333,9 @@ getenvironment(PyObject* environment)
|
||||||
|
|
||||||
/* PyObject_Print(out, stdout, 0); */
|
/* PyObject_Print(out, stdout, 0); */
|
||||||
|
|
||||||
|
Py_XDECREF(keys);
|
||||||
|
Py_XDECREF(values);
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue