summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2005-11-12 10:15:03 +0000
committerFredrik Lundh <fredrik@pythonware.com>2005-11-12 10:15:03 +0000
commitbb4692b6f2ee67994ef43e7a359ffd987392261d (patch)
tree58756c1df7459142dfd2505597caf5320fd19623
parentf5b7fd223967e7e6f1d82c0659b2265a05909719 (diff)
downloadcpython-git-bb4692b6f2ee67994ef43e7a359ffd987392261d.tar.gz
r849@spiff: Fredrik | 2005-11-09 10:00:04 +0100
fixed resource leak in _subprocess.CreateProcess when using explicit environments
-rw-r--r--PC/_subprocess.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/PC/_subprocess.c b/PC/_subprocess.c
index 61544c3234..f107c1340d 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: