[Python-checkins] python/dist/src/Objects typeobject.c, 2.241.6.11,
2.241.6.12
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Wed Aug 18 15:21:25 CEST 2004
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7487
Modified Files:
Tag: release23-maint
typeobject.c
Log Message:
Patch #980082: Missing INCREF in PyType_Ready.
Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.241.6.11
retrieving revision 2.241.6.12
diff -C2 -d -r2.241.6.11 -r2.241.6.12
*** typeobject.c 25 Jun 2004 22:18:46 -0000 2.241.6.11
--- typeobject.c 18 Aug 2004 13:21:22 -0000 2.241.6.12
***************
*** 3130,3135 ****
/* Initialize tp_base (defaults to BaseObject unless that's us) */
base = type->tp_base;
! if (base == NULL && type != &PyBaseObject_Type)
base = type->tp_base = &PyBaseObject_Type;
/* Initialize the base class */
--- 3130,3137 ----
/* Initialize tp_base (defaults to BaseObject unless that's us) */
base = type->tp_base;
! if (base == NULL && type != &PyBaseObject_Type) {
base = type->tp_base = &PyBaseObject_Type;
+ Py_INCREF(base);
+ }
/* Initialize the base class */
More information about the Python-checkins
mailing list