]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
r849@spiff: Fredrik | 2005-11-09 10:00:04 +0100
authorFredrik Lundh <fredrik@pythonware.com>
Sat, 12 Nov 2005 10:15:03 +0000 (10:15 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Sat, 12 Nov 2005 10:15:03 +0000 (10:15 +0000)
 fixed resource leak in _subprocess.CreateProcess when using
 explicit environments

PC/_subprocess.c

index 61544c32343ac25041d60eff58665c4885a644c9..f107c1340df1f1b7d04bd0b54911f73098cd1fe6 100644 (file)
@@ -333,6 +333,9 @@ getenvironment(PyObject* environment)
 
        /* PyObject_Print(out, stdout, 0); */
 
+       Py_XDECREF(keys);
+       Py_XDECREF(values);
+
        return out;
 
  error: