commit | de34cbe9cdaaf7b85fed86f99c2fd071e1a7b1d2 | [log] [tgz] |
---|---|---|
author | Alexander Mohr <thehesiod@users.noreply.github.com> | Tue Aug 01 23:31:07 2017 -0700 |
committer | INADA Naoki <methane@users.noreply.github.com> | Wed Aug 02 15:31:07 2017 +0900 |
tree | 12fc6ed6dc8e1e23fd75d6b35c29dda2b8469cea | |
parent | 47320a652e872003f3dd3a9db4243067b09dd316 [diff] [blame] |
bpo-31061: fix crash in asyncio speedup module (GH-2966)
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index b998a04..d4b3134 100644 --- a/Modules/_asynciomodule.c +++ b/Modules/_asynciomodule.c
@@ -972,6 +972,8 @@ } } + PyObject_GC_UnTrack(self); + if (fut->fut_weakreflist != NULL) { PyObject_ClearWeakRefs(self); } @@ -1846,6 +1848,8 @@ } } + PyObject_GC_UnTrack(self); + if (task->task_weakreflist != NULL) { PyObject_ClearWeakRefs(self); }