From: Benjamin Peterson Date: Sat, 16 Apr 2016 22:12:29 +0000 (-0700) Subject: fix slice cache finalization to use gc del X-Git-Tag: v3.6.0a1~186^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0c04cb98c4d59f0e9a046b78cdd83c465d3fba8;p=thirdparty%2FPython%2Fcpython.git fix slice cache finalization to use gc del --- diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c index bf5eb3aeee80..2f32355cd25b 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); } }