[Python-checkins] Fix memory leak introduced by GH-22780 (GH-23237)
asvetlov
webhook-mailer at python.org
Wed Nov 11 10:49:04 EST 2020
https://github.com/python/cpython/commit/cda99b4022daa08ac74b0420e9903cce883d91c6
commit: cda99b4022daa08ac74b0420e9903cce883d91c6
branch: master
author: Andrew Svetlov <andrew.svetlov at gmail.com>
committer: asvetlov <andrew.svetlov at gmail.com>
date: 2020-11-11T17:48:53+02:00
summary:
Fix memory leak introduced by GH-22780 (GH-23237)
files:
M Modules/_asynciomodule.c
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c
index d1d0f6bc75e42..01e36c656da8f 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;
}
More information about the Python-checkins
mailing list