Skip to content

Commit 9ce41be

Browse files
Check tuple tracking after tp_subscipt
1 parent ddfe151 commit 9ce41be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/tupleobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ tuple_subscript(PyObject *op, PyObject* item)
847847
dest[i] = it;
848848
}
849849

850-
if (_PyObject_GC_IS_TRACKED(self)) {
850+
if (tuple_need_tracking(result)) {
851851
_PyObject_GC_TRACK(result);
852852
}
853853
return (PyObject *)result;

0 commit comments

Comments
 (0)