mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Use pymalloc if it's enabled.
This commit is contained in:
parent
a1a9c51a3e
commit
dcc819a5c9
7 changed files with 24 additions and 24 deletions
|
@ -22,7 +22,7 @@ PyStructSequence_New(PyTypeObject *type)
|
|||
{
|
||||
PyStructSequence *obj;
|
||||
|
||||
obj = PyObject_New(PyStructSequence, type);
|
||||
obj = PyMalloc_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]);
|
||||
}
|
||||
PyObject_FREE(obj);
|
||||
PyMalloc_Del(obj);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue