Issue #29049: Remove unnecessary Py_DECREF

This commit is contained in:
INADA Naoki 2016-12-26 18:52:46 +09:00
parent 6a3cedf8dd
commit 9c15776fac

View File

@ -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) {