summaryrefslogtreecommitdiffstats
path: root/Objects/sliceobject.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-04-16 22:12:29 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-04-16 22:12:29 (GMT)
commitb0c04cb98c4d59f0e9a046b78cdd83c465d3fba8 (patch)
tree271a8e5a4c86434a82f6c69249faf8ac665e9cd0 /Objects/sliceobject.c
parent8917226e4aa34e63f71992a4e189d75e98ad5c11 (diff)
downloadcpython-b0c04cb98c4d59f0e9a046b78cdd83c465d3fba8.zip
cpython-b0c04cb98c4d59f0e9a046b78cdd83c465d3fba8.tar.gz
cpython-b0c04cb98c4d59f0e9a046b78cdd83c465d3fba8.tar.bz2
fix slice cache finalization to use gc del
Diffstat (limited to 'Objects/sliceobject.c')
-rw-r--r--Objects/sliceobject.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}