Skip to content

Commit ff6b7ee

Browse files
committed
add missing Py_DECREF for tasks
1 parent 3b093fc commit ff6b7ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_asynciomodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3673,6 +3673,7 @@ _asyncio_all_tasks_impl(PyObject *module, PyObject *loop)
36733673

36743674
/* Check if loop ended because of exception in PyIter_Next */
36753675
if (PyErr_Occurred()) {
3676+
Py_DECREF(tasks);
36763677
return NULL;
36773678
}
36783679

0 commit comments

Comments
 (0)