Mercurial > cpython-lru_cache-weakref
diff Objects/structseq.c @ 22978:363c7fc174ac legacy-trunk
Remove PyMalloc_New and PyMalloc_Del.
| author | Neil Schemenauer <nascheme@enme.ucalgary.ca> |
|---|---|
| date | Fri, 12 Apr 2002 03:05:37 +0000 |
| parents | d5aad6c581c9 |
| children | 0bbea4dcd9be |
line wrap: on
line diff
--- a/Objects/structseq.c Fri Apr 12 03:05:19 2002 +0000 +++ b/Objects/structseq.c Fri Apr 12 03:05:37 2002 +0000 @@ -22,7 +22,7 @@ { 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 @@ for (i = 0; i < size; ++i) { Py_XDECREF(obj->ob_item[i]); } - PyMalloc_Del(obj); + PyObject_Del(obj); } static int
