summaryrefslogtreecommitdiffstats
path: root/Objects/sliceobject.c
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-04-12 03:05:37 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-04-12 03:05:37 (GMT)
commit7465ad2fc982ca15b7f1c568fb6044d2beac46e0 (patch)
tree40eba19737b3f88e1c456f70c2db95fb8d9dcd1d /Objects/sliceobject.c
parent510492e98552131b1326bb5caa4e347fc15389f8 (diff)
downloadcpython-7465ad2fc982ca15b7f1c568fb6044d2beac46e0.zip
cpython-7465ad2fc982ca15b7f1c568fb6044d2beac46e0.tar.gz
cpython-7465ad2fc982ca15b7f1c568fb6044d2beac46e0.tar.bz2
Remove PyMalloc_New and PyMalloc_Del.
Diffstat (limited to 'Objects/sliceobject.c')
-rw-r--r--Objects/sliceobject.c4
1 files changed, 2 insertions, 2 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 *