Skip to content

Commit b0c04cb

Browse files
committed
fix slice cache finalization to use gc del
1 parent 8917226 commit b0c04cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/sliceobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void PySlice_Fini(void)
102102
PySliceObject *obj = slice_cache;
103103
if (obj != NULL) {
104104
slice_cache = NULL;
105-
PyObject_Del(obj);
105+
PyObject_GC_Del(obj);
106106
}
107107
}
108108

0 commit comments

Comments
 (0)