commit | b0c04cb98c4d59f0e9a046b78cdd83c465d3fba8 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sat Apr 16 15:12:29 2016 -0700 |
committer | Benjamin Peterson <benjamin@python.org> | Sat Apr 16 15:12:29 2016 -0700 |
tree | 271a8e5a4c86434a82f6c69249faf8ac665e9cd0 | |
parent | 8917226e4aa34e63f71992a4e189d75e98ad5c11 [diff] |
fix slice cache finalization to use gc del
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 @@ PySliceObject *obj = slice_cache; if (obj != NULL) { slice_cache = NULL; - PyObject_Del(obj); + PyObject_GC_Del(obj); } }