From: INADA Naoki Date: Mon, 26 Dec 2016 09:52:46 +0000 (+0900) Subject: Issue #29049: Remove unnecessary Py_DECREF X-Git-Tag: v3.7.0a1~1686 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c15776face20bfab7870aa7bd536362539ff025;p=python Issue #29049: Remove unnecessary Py_DECREF --- diff --git a/Python/ceval.c b/Python/ceval.c index 08fc27f246..5519ac7555 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -4153,9 +4153,9 @@ _PyEval_EvalCodeWithName(PyObject *_co, PyObject *globals, PyObject *locals, gen = PyGen_NewWithQualName(f, name, qualname); } if (gen == NULL) { - Py_DECREF(f); return NULL; } + _PyObject_GC_TRACK(f); if (is_coro && coro_wrapper != NULL) {