diff options
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 7a12a86..10e415f 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -3121,9 +3121,7 @@ zip_next(PyObject *self) } // bpo-42536: The GC may have untracked this result tuple. Since we're // recycling it, make sure it's tracked again: - if (!_PyObject_GC_IS_TRACKED(result)) { - _PyObject_GC_TRACK(result); - } + _PyTuple_Recycle(result); } else { result = PyTuple_New(tuplesize); if (result == NULL) |