From: Neil Schemenauer Date: Fri, 12 Apr 2002 02:44:55 +0000 (+0000) Subject: Remove PyMalloc_New and PyMalloc_Del. X-Git-Tag: v2.3c1~6026 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9acae5a0a6f9fd15dbe7d8da8c5604a161b0d7a6;p=python Remove PyMalloc_New and PyMalloc_Del. --- diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index fa7e6609d1..fd02d09150 100644 --- a/Objects/rangeobject.c +++ b/Objects/rangeobject.c @@ -60,7 +60,7 @@ PyObject * PyRange_New(long start, long len, long step, int reps) { long totlen = -1; - rangeobject *obj = PyMalloc_New(rangeobject, &PyRange_Type); + rangeobject *obj = PyObject_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) { - PyMalloc_Del(r); + PyObject_Del(r); } static PyObject *