Author: thomas.heller Date: Wed Jul 11 14:18:46 2007 New Revision: 56257 Modified: python/branches/py3k-struni/Modules/_ctypes/stgdict.c Log: PyType_stgdict() returns a borrowed reference which must not be Py_DECREF'd. This bug should be fixed in trunk and release25-maint also.
Modified: python/branches/py3k-struni/Modules/_ctypes/stgdict.c ============================================================================== --- python/branches/py3k-struni/Modules/_ctypes/stgdict.c (original) +++ python/branches/py3k-struni/Modules/_ctypes/stgdict.c Wed Jul 11 14:18:46 2007 @@ -465,13 +465,11 @@ if (!prop) { Py_DECREF(pair); - Py_DECREF((PyObject *)stgdict); return -1; } if (-1 == PyDict_SetItem(realdict, name, prop)) { Py_DECREF(prop); Py_DECREF(pair); - Py_DECREF((PyObject *)stgdict); return -1; } Py_DECREF(pair); _______________________________________________ Python-3000-checkins mailing list Python-3000-checkins@python.org http://mail.python.org/mailman/listinfo/python-3000-checkins