Index: Objects/object.c =================================================================== --- Objects/object.c (revision 60223) +++ Objects/object.c (working copy) @@ -1349,12 +1349,15 @@ dictptr = (PyObject **) ((char *)obj + dictoffset); dict = *dictptr; if (dict != NULL) { + Py_INCREF(dict); res = PyDict_GetItem(dict, name); if (res != NULL) { Py_INCREF(res); Py_XDECREF(descr); + Py_DECREF(dict); goto done; } + Py_DECREF(dict); } }