commit | cda99b4022daa08ac74b0420e9903cce883d91c6 | [log] [tgz] |
---|---|---|
author | Andrew Svetlov <andrew.svetlov@gmail.com> | Wed Nov 11 17:48:53 2020 +0200 |
committer | GitHub <noreply@github.com> | Wed Nov 11 17:48:53 2020 +0200 |
tree | a7b3ccd40ef5ba4e3048f2f32d533c0548101df8 | |
parent | ba2958ed40d284228836735cbed4a155190e0998 [diff] |
Fix memory leak introduced by GH-22780 (GH-23237)
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index d1d0f6b..01e36c6 100644 --- a/Modules/_asynciomodule.c +++ b/Modules/_asynciomodule.c
@@ -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; }