Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt committed Jan 7, 2025
1 parent d5c1b1b commit 77d923d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/listobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -3929,7 +3929,7 @@ listiter_dealloc(PyObject *self)
_PyListIterObject *it = (_PyListIterObject *)self;
_PyObject_GC_UNTRACK(it);
Py_XDECREF(it->it_seq);
assert(Py_TYPE(self)==_PyListIterObject);
assert(Py_IS_TYPE(self, &PyListIter_Type));
_Py_FREELIST_FREE(list_iters, it, PyObject_GC_Del);
}

Expand Down
1 change: 1 addition & 0 deletions Objects/tupleobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,7 @@ tupleiter_dealloc(PyObject *self)
_PyTupleIterObject *it = _PyTupleIterObject_CAST(self);
_PyObject_GC_UNTRACK(it);
Py_XDECREF(it->it_seq);
assert(Py_IS_TYPE(self, &PyTupleIter_Type));
_Py_FREELIST_FREE(tuple_iters, it, PyObject_GC_Del);
}

Expand Down

0 comments on commit 77d923d

Please sign in to comment.