mirror of
https://github.com/python/cpython.git
synced 2024-11-29 12:54:02 +08:00
Issue #29049: Remove unnecessary Py_DECREF
This commit is contained in:
parent
6a3cedf8dd
commit
9c15776fac
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user