Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cda99b4

Browse files
authored
Fix memory leak introduced by GH-22780 (GH-23237)
1 parent ba2958e commit cda99b4

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
@@ -1628,6 +1628,7 @@ FutureIter_am_send(futureiterobject *it,
16281628
it->future = NULL;
16291629
res = _asyncio_Future_result_impl(fut);
16301630
if (res != NULL) {
1631+
Py_DECREF(fut);
16311632
*result = res;
16321633
return PYGEN_RETURN;
16331634
}

0 commit comments

Comments
 (0)