mirror of
https://github.com/python/cpython.git
synced 2025-08-28 20:56:54 +00:00
Fix memory leak introduced by GH-22780 (GH-23237)
This commit is contained in:
parent
ba2958ed40
commit
cda99b4022
1 changed files with 1 additions and 0 deletions
|
@ -1628,6 +1628,7 @@ FutureIter_am_send(futureiterobject *it,
|
||||||
it->future = NULL;
|
it->future = NULL;
|
||||||
res = _asyncio_Future_result_impl(fut);
|
res = _asyncio_Future_result_impl(fut);
|
||||||
if (res != NULL) {
|
if (res != NULL) {
|
||||||
|
Py_DECREF(fut);
|
||||||
*result = res;
|
*result = res;
|
||||||
return PYGEN_RETURN;
|
return PYGEN_RETURN;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue