crush other possible refleaks in this section

This commit is contained in:
Benjamin Peterson 2011-08-16 22:28:23 -05:00
parent 3e6267e704
commit d17cefc787
1 changed files with 1 additions and 0 deletions

View File

@ -2100,6 +2100,7 @@ type_new(PyTypeObject *metatype, PyObject *args, PyObject *kwds)
PyErr_Format(PyExc_ValueError,
"%R in __slots__ conflicts with class variable",
tmp);
Py_DECREF(newslots);
goto bad_slots;
}
j++;