diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2005-11-12 10:15:03 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2005-11-12 10:15:03 (GMT) |
commit | bb4692b6f2ee67994ef43e7a359ffd987392261d (patch) | |
tree | 58756c1df7459142dfd2505597caf5320fd19623 /PC/_subprocess.c | |
parent | f5b7fd223967e7e6f1d82c0659b2265a05909719 (diff) | |
download | cpython-bb4692b6f2ee67994ef43e7a359ffd987392261d.zip cpython-bb4692b6f2ee67994ef43e7a359ffd987392261d.tar.gz cpython-bb4692b6f2ee67994ef43e7a359ffd987392261d.tar.bz2 |
r849@spiff: Fredrik | 2005-11-09 10:00:04 +0100
fixed resource leak in _subprocess.CreateProcess when using
explicit environments
Diffstat (limited to 'PC/_subprocess.c')
-rw-r--r-- | PC/_subprocess.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/PC/_subprocess.c b/PC/_subprocess.c index 61544c3..f107c13 100644 --- a/PC/_subprocess.c +++ b/PC/_subprocess.c @@ -333,6 +333,9 @@ getenvironment(PyObject* environment) /* PyObject_Print(out, stdout, 0); */ + Py_XDECREF(keys); + Py_XDECREF(values); + return out; error: |