Skip to content

Commit

Permalink
fix refcounting
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraditya303 committed Dec 21, 2024
1 parent 26e9932 commit 4381ae2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/_asynciomodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3748,6 +3748,7 @@ _asyncio_all_tasks_impl(PyObject *module, PyObject *loop)
Py_DECREF(loop);
return NULL;
}
Py_DECREF(eager_tasks);
PyObject *eager_iter = PyObject_GetIter(eager_tasks);
if (eager_iter == NULL) {
Py_DECREF(tasks);
Expand Down

0 comments on commit 4381ae2

Please sign in to comment.