https://hg.python.org/cpython/rev/5f3ac68f34f2 changeset: 105825:5f3ac68f34f2 user: INADA Naoki <songofacandy at gmail.com> date: Mon Dec 26 18:52:46 2016 +0900 summary: Issue #29049: Remove unnecessary Py_DECREF files: Python/ceval.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Python/ceval.c b/Python/ceval.c --- a/Python/ceval.c +++ b/Python/ceval.c @@ -4153,9 +4153,9 @@ gen = PyGen_NewWithQualName(f, name, qualname); } if (gen == NULL) { - Py_DECREF(f); return NULL; } + _PyObject_GC_TRACK(f); if (is_coro && coro_wrapper != NULL) { -- Repository URL: https://hg.python.org/cpython