From 7465ad2fc982ca15b7f1c568fb6044d2beac46e0 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Fri, 12 Apr 2002 03:05:37 +0000 Subject: Remove PyMalloc_New and PyMalloc_Del. --- Objects/sliceobject.c | 4 ++-- Objects/structseq.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c index 108ab27..7562d34 100644 --- a/Objects/sliceobject.c +++ b/Objects/sliceobject.c @@ -60,7 +60,7 @@ PyObject _Py_EllipsisObject = { PyObject * PySlice_New(PyObject *start, PyObject *stop, PyObject *step) { - PySliceObject *obj = PyMalloc_New(PySliceObject, &PySlice_Type); + PySliceObject *obj = PyObject_New(PySliceObject, &PySlice_Type); if (obj == NULL) return NULL; @@ -115,7 +115,7 @@ slice_dealloc(PySliceObject *r) Py_DECREF(r->step); Py_DECREF(r->start); Py_DECREF(r->stop); - PyMalloc_Del(r); + PyObject_Del(r); } static PyObject * diff --git a/Objects/structseq.c b/Objects/structseq.c index 7231ce1..fdc56cb 100644 --- a/Objects/structseq.c +++ b/Objects/structseq.c @@ -22,7 +22,7 @@ PyStructSequence_New(PyTypeObject *type) { PyStructSequence *obj; - obj = PyMalloc_New(PyStructSequence, type); + obj = PyObject_New(PyStructSequence, type); obj->ob_size = VISIBLE_SIZE_TP(type); return (PyObject*) obj; @@ -37,7 +37,7 @@ structseq_dealloc(PyStructSequence *obj) for (i = 0; i < size; ++i) { Py_XDECREF(obj->ob_item[i]); } - PyMalloc_Del(obj); + PyObject_Del(obj); } static int -- cgit v0.12