mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #29049: Remove unnecessary Py_DECREF
This commit is contained in:
parent
6a3cedf8dd
commit
9c15776fac
1 changed files with 1 additions and 1 deletions
|
@ -4153,9 +4153,9 @@ _PyEval_EvalCodeWithName(PyObject *_co, PyObject *globals, PyObject *locals,
|
||||||
gen = PyGen_NewWithQualName(f, name, qualname);
|
gen = PyGen_NewWithQualName(f, name, qualname);
|
||||||
}
|
}
|
||||||
if (gen == NULL) {
|
if (gen == NULL) {
|
||||||
Py_DECREF(f);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
_PyObject_GC_TRACK(f);
|
_PyObject_GC_TRACK(f);
|
||||||
|
|
||||||
if (is_coro && coro_wrapper != NULL) {
|
if (is_coro && coro_wrapper != NULL) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue