diff options
-rw-r--r-- | Objects/object.c | 3 | ||||
-rw-r--r-- | Objects/rangeobject.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/Objects/object.c b/Objects/object.c index fa5eb4d..df93a19 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -1509,9 +1509,6 @@ _Py_ReadyTypes(void) if (PyType_Ready(&PyStdPrinter_Type) < 0) Py_FatalError("Can't initialize StdPrinter"); - - if (PyType_Ready(&PyRange_Type) < 0) - Py_FatalError("Can't initialize 'range'"); } diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index e159feb..0bb3e7b 100644 --- a/Objects/rangeobject.c +++ b/Objects/rangeobject.c @@ -107,7 +107,7 @@ range_dealloc(rangeobject *r) Py_DECREF(r->start); Py_DECREF(r->stop); Py_DECREF(r->step); - Py_Type(r)->tp_free(r); + PyObject_Del(r); } /* Return number of items in range (lo, hi, step), when arguments are @@ -482,6 +482,7 @@ longrangeiter_dealloc(longrangeiterobject *r) Py_XDECREF(r->start); Py_XDECREF(r->step); Py_XDECREF(r->len); + PyObject_Del(r); } static PyObject * |