Skip to content

Commit

Permalink
add missing Py_DECREF for tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframAlph committed Dec 25, 2024
1 parent 3b093fc commit ff6b7ee
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 @@ -3673,6 +3673,7 @@ _asyncio_all_tasks_impl(PyObject *module, PyObject *loop)

/* Check if loop ended because of exception in PyIter_Next */
if (PyErr_Occurred()) {
Py_DECREF(tasks);
return NULL;
}

Expand Down

0 comments on commit ff6b7ee

Please sign in to comment.