summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PC/_subprocess.c3
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: