From d17cefc7876ec646a33773dfd2aa4dde2d8187d0 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 16 Aug 2011 22:28:23 -0500 Subject: [PATCH] crush other possible refleaks in this section --- Objects/typeobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 3971062eadf..669b709613f 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++;