mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -1914,7 +1914,7 @@ static PyObject *
|
|||
dictiter_new(dictobject *dict, binaryfunc select)
|
||||
{
|
||||
dictiterobject *di;
|
||||
di = PyObject_NEW(dictiterobject, &PyDictIter_Type);
|
||||
di = PyMalloc_New(dictiterobject, &PyDictIter_Type);
|
||||
if (di == NULL)
|
||||
return NULL;
|
||||
Py_INCREF(dict);
|
||||
|
@ -1929,7 +1929,7 @@ static void
|
|||
dictiter_dealloc(dictiterobject *di)
|
||||
{
|
||||
Py_DECREF(di->di_dict);
|
||||
PyObject_DEL(di);
|
||||
PyMalloc_Del(di);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue