[Python-checkins] cpython: crush other possible refleaks in this section

benjamin.peterson python-checkins at python.org
Wed Aug 17 05:28:37 CEST 2011


http://hg.python.org/cpython/rev/3d1cdbd76fbe
changeset:   71892:3d1cdbd76fbe
user:        Benjamin Peterson <benjamin at python.org>
date:        Tue Aug 16 22:28:23 2011 -0500
summary:
  crush other possible refleaks in this section

files:
  Objects/typeobject.c |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Objects/typeobject.c b/Objects/typeobject.c
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -2100,6 +2100,7 @@
                 PyErr_Format(PyExc_ValueError,
                              "%R in __slots__ conflicts with class variable",
                              tmp);
+                Py_DECREF(newslots);
                 goto bad_slots;
             }
             j++;

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list