Fix memory leak introduced by GH-22780 (GH-23237)

This commit is contained in:
Andrew Svetlov 2020-11-11 17:48:53 +02:00 committed by GitHub
parent ba2958ed40
commit cda99b4022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}