[Python-checkins] cpython: Issue #27213: Fix reference leaks
victor.stinner
python-checkins at python.org
Mon Sep 12 05:17:32 EDT 2016
https://hg.python.org/cpython/rev/f217419d08f0
changeset: 103699:f217419d08f0
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Sep 12 11:16:37 2016 +0200
summary:
Issue #27213: Fix reference leaks
files:
Python/ceval.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Python/ceval.c b/Python/ceval.c
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3300,6 +3300,7 @@
PyEval_GetFuncDesc(func),
kwargs->ob_type->tp_name);
}
+ Py_DECREF(kwargs);
goto error;
}
Py_DECREF(kwargs);
@@ -3318,6 +3319,7 @@
PyEval_GetFuncName(func),
PyEval_GetFuncDesc(func),
callargs->ob_type->tp_name);
+ Py_DECREF(callargs);
goto error;
}
Py_SETREF(callargs, PySequence_Tuple(callargs));
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list