From b0c04cb98c4d59f0e9a046b78cdd83c465d3fba8 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 16 Apr 2016 15:12:29 -0700 Subject: fix slice cache finalization to use gc del --- Objects/sliceobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c index bf5eb3a..2f32355 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); } } -- cgit v0.12