diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c index bf5eb3aeee8..2f32355cd25 100644 --- a/Objects/sliceobject.c +++ b/Objects/sliceobject.c @@ -102,7 +102,7 @@ void PySlice_Fini(void) PySliceObject *obj = slice_cache; if (obj != NULL) { slice_cache = NULL; - PyObject_Del(obj); + PyObject_GC_Del(obj); } }