Use pymalloc if it's enabled.
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c
index da791fa..fa7e660 100644
--- a/Objects/rangeobject.c
+++ b/Objects/rangeobject.c
@@ -60,7 +60,7 @@
PyRange_New(long start, long len, long step, int reps)
{
long totlen = -1;
- rangeobject *obj = PyObject_NEW(rangeobject, &PyRange_Type);
+ rangeobject *obj = PyMalloc_New(rangeobject, &PyRange_Type);
if (obj == NULL)
return NULL;
@@ -104,7 +104,7 @@
static void
range_dealloc(rangeobject *r)
{
- PyObject_DEL(r);
+ PyMalloc_Del(r);
}
static PyObject *