mirror of https://github.com/python/cpython.git
fix slice cache finalization to use gc del
This commit is contained in:
parent
8917226e4a
commit
b0c04cb98c
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue