summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-09-12 09:16:37 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-09-12 09:16:37 (GMT)
commiteece2229e270c14d7e2df8c1ac64b96d108f7dac (patch)
tree9ae974b50fcac25fd1bcf751475b11a3dc98ee2a /Python
parent4d9a72902dec55fe87f105324adc4239a13d966f (diff)
downloadcpython-eece2229e270c14d7e2df8c1ac64b96d108f7dac.zip
cpython-eece2229e270c14d7e2df8c1ac64b96d108f7dac.tar.gz
cpython-eece2229e270c14d7e2df8c1ac64b96d108f7dac.tar.bz2
Issue #27213: Fix reference leaks
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 06d3a65..c9ac03f 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3300,6 +3300,7 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
PyEval_GetFuncDesc(func),
kwargs->ob_type->tp_name);
}
+ Py_DECREF(kwargs);
goto error;
}
Py_DECREF(kwargs);
@@ -3318,6 +3319,7 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
PyEval_GetFuncName(func),
PyEval_GetFuncDesc(func),
callargs->ob_type->tp_name);
+ Py_DECREF(callargs);
goto error;
}
Py_SETREF(callargs, PySequence_Tuple(callargs));