Skip to content

Commit

Permalink
Fix tee_copy
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Feb 9, 2023
1 parent 68e63dd commit 9f68cd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/itertoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,7 @@ tee_copy(teeobject *to, PyObject *Py_UNUSED(ignored))
newto->dataobj = (teedataobject*)Py_NewRef(to->dataobj);
newto->index = to->index;
newto->weakreflist = NULL;
newto->state = to->state;
PyObject_GC_Track(newto);
return (PyObject *)newto;
}
Expand Down

0 comments on commit 9f68cd1

Please sign in to comment.