From: Benjamin Peterson Date: Wed, 17 Aug 2011 03:28:23 +0000 (-0500) Subject: crush other possible refleaks in this section X-Git-Tag: v3.3.0a1~1688 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d17cefc7876ec646a33773dfd2aa4dde2d8187d0;p=thirdparty%2FPython%2Fcpython.git crush other possible refleaks in this section --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 3971062eadfa..669b709613f4 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -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++;