Skip to content

Commit a9c6ce5

Browse files
Visit and clear teedataobject_type
1 parent ef2d52f commit a9c6ce5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/itertoolsmodule.c

+2
Original file line numberDiff line numberDiff line change
@@ -4608,6 +4608,7 @@ itertoolsmodule_traverse(PyObject *mod, visitproc visit, void *arg)
46084608
Py_VISIT(state->starmap_type);
46094609
Py_VISIT(state->takewhile_type);
46104610
Py_VISIT(state->tee_type);
4611+
Py_VISIT(state->teedataobject_type);
46114612
Py_VISIT(state->ziplongest_type);
46124613
return 0;
46134614
}
@@ -4636,6 +4637,7 @@ itertoolsmodule_clear(PyObject *mod)
46364637
Py_CLEAR(state->starmap_type);
46374638
Py_CLEAR(state->takewhile_type);
46384639
Py_CLEAR(state->tee_type);
4640+
Py_CLEAR(state->teedataobject_type);
46394641
Py_CLEAR(state->ziplongest_type);
46404642
return 0;
46414643
}

0 commit comments

Comments
 (0)