summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-08-17 03:28:23 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-08-17 03:28:23 (GMT)
commitd17cefc7876ec646a33773dfd2aa4dde2d8187d0 (patch)
treeea5fb737f722a7ce0dee7b54ff0a42b1f87fa266 /Objects
parent3e6267e7046b8d1473b2fd1c66dad9c4b8a81ae3 (diff)
downloadcpython-d17cefc7876ec646a33773dfd2aa4dde2d8187d0.zip
cpython-d17cefc7876ec646a33773dfd2aa4dde2d8187d0.tar.gz
cpython-d17cefc7876ec646a33773dfd2aa4dde2d8187d0.tar.bz2
crush other possible refleaks in this section
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 3971062..669b709 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++;