Commit 5e06a5d4 authored by Martin v. Löwis's avatar Martin v. Löwis

- Check for NULL result in PyType_FromSpec.

parent 2cebdd48
......@@ -7,6 +7,11 @@ What's New in Python 3.3 Alpha 1?
*Release date: XX-XXX-20XX*
Core and Builtins
-----------------
- Check for NULL result in PyType_FromSpec.
What's New in Python 3.2?
=========================
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment