mirror of
https://github.com/python/cpython.git
synced 2025-12-10 02:50:09 +00:00
Remove PyMalloc_New and PyMalloc_Del.
This commit is contained in:
parent
510492e985
commit
7465ad2fc9
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue