From: Neil Schemenauer <nascheme@enme.ucalgary.ca>
Date: Fri, 12 Apr 2002 03:05:37 +0000 (+0000)
Subject: Remove PyMalloc_New and PyMalloc_Del.
X-Git-Tag: v2.3c1~6024
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7465ad2fc982ca15b7f1c568fb6044d2beac46e0;p=python

Remove PyMalloc_New and PyMalloc_Del.
---

diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c
index 108ab275c1..7562d34754 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 7231ce1ec6..fdc56cb793 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