mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Fix memory leak introduced by GH-22780 (GH-23237)
This commit is contained in:
@@ -1628,6 +1628,7 @@ FutureIter_am_send(futureiterobject *it,
|
||||
it->future = NULL;
|
||||
res = _asyncio_Future_result_impl(fut);
|
||||
if (res != NULL) {
|
||||
Py_DECREF(fut);
|
||||
*result = res;
|
||||
return PYGEN_RETURN;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user