]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
crush other possible refleaks in this section
authorBenjamin Peterson <benjamin@python.org>
Wed, 17 Aug 2011 03:28:23 +0000 (22:28 -0500)
committerBenjamin Peterson <benjamin@python.org>
Wed, 17 Aug 2011 03:28:23 +0000 (22:28 -0500)
Objects/typeobject.c

index 3971062eadfa232160701e9baba1512df514a94a..669b709613f4dc056ed8495847dda623a50f06ae 100644 (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++;