Use _PyDict_NewPresized() in _PyStack_AsDict()

Issue #27810.
This commit is contained in:
Victor Stinner 2016-12-15 16:59:40 +01:00
parent 41afe9dd85
commit 944dbc6431
1 changed files with 1 additions and 1 deletions

View File

@ -2378,7 +2378,7 @@ _PyStack_AsDict(PyObject **values, PyObject *kwnames)
PyObject *kwdict;
Py_ssize_t i;
kwdict = PyDict_New();
kwdict = _PyDict_NewPresized(nkwargs);
if (kwdict == NULL) {
return NULL;
}