Skip to content

Commit ed666f9

Browse files
remove redundant ref counting
1 parent 09983fc commit ed666f9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Modules/_asynciomodule.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3000,11 +3000,7 @@ task_call_step_soon(asyncio_state *state, TaskObj *task, PyObject *arg)
30003000
return -1;
30013001
}
30023002

3003-
// Beware: An evil call_soon could alter task_context.
3004-
// See: https://github.com/python/cpython/issues/126080.
3005-
PyObject *task_context = Py_NewRef(task->task_context);
30063003
int ret = call_soon(state, task->task_loop, cb, NULL, task_context);
3007-
Py_DECREF(task_context);
30083004
Py_DECREF(cb);
30093005
return ret;
30103006
}

0 commit comments

Comments
 (0)