mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Use pymalloc if it's enabled.
This commit is contained in:
parent
a1a9c51a3e
commit
dcc819a5c9
7 changed files with 24 additions and 24 deletions
|
@ -60,7 +60,7 @@ PyObject *
|
|||
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 @@ PyRange_New(long start, long len, long step, int reps)
|
|||
static void
|
||||
range_dealloc(rangeobject *r)
|
||||
{
|
||||
PyObject_DEL(r);
|
||||
PyMalloc_Del(r);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue