[Python-checkins] cpython (3.5): fix slice cache finalization to use gc del
benjamin.peterson
python-checkins at python.org
Sat Apr 16 18:12:42 EDT 2016
https://hg.python.org/cpython/rev/8ae1b986766d
changeset: 101025:8ae1b986766d
branch: 3.5
parent: 101023:7b460808a407
user: Benjamin Peterson <benjamin at python.org>
date: Sat Apr 16 15:12:29 2016 -0700
summary:
fix slice cache finalization to use gc del
files:
Objects/sliceobject.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c
--- a/Objects/sliceobject.c
+++ b/Objects/sliceobject.c
@@ -102,7 +102,7 @@
PySliceObject *obj = slice_cache;
if (obj != NULL) {
slice_cache = NULL;
- PyObject_Del(obj);
+ PyObject_GC_Del(obj);
}
}
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list