Skip to content

Commit e12dd2e

Browse files
committed
Fix bug in tuple untrack logic.
Need to clear the "alive" bit.
1 parent 62bace2 commit e12dd2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/gc_free_threading.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ gc_mark_traverse_tuple(PyObject *self, void *args)
648648
{
649649
_PyTuple_MaybeUntrack(self);
650650
if (!gc_has_bit(self, _PyGC_BITS_TRACKED)) {
651+
gc_clear_alive(self);
651652
return 0;
652653
}
653654
PyTupleObject *tuple = _PyTuple_CAST(self);

0 commit comments

Comments
 (0)