mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Merged revisions 88456 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88456 | martin.v.loewis | 2011-02-21 17:24:00 +0100 (Mo, 21 Feb 2011) | 2 lines - Check for NULL result in PyType_FromSpec. ........
This commit is contained in:
parent
98a755ded4
commit
7be5b78b4f
2 changed files with 13 additions and 0 deletions
|
@ -2330,6 +2330,8 @@ PyObject* PyType_FromSpec(PyType_Spec *spec)
|
|||
char *res_start = (char*)res;
|
||||
PyType_Slot *slot;
|
||||
|
||||
if (res == NULL)
|
||||
return NULL;
|
||||
res->ht_name = PyUnicode_FromString(spec->name);
|
||||
if (!res->ht_name)
|
||||
goto fail;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue