[Python-Dev] segmentation fault in Python 2.5b3 (trunk:51066) (original) (raw)
Thomas Heller theller at python.net
Thu Aug 3 15:56:48 CEST 2006
- Previous message: [Python-Dev] segmentation fault in Python 2.5b3 (trunk:51066)
- Next message: [Python-Dev] segmentation fault in Python 2.5b3 (trunk:51066)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
/* if no docstring given and the getter has one, use that one */ if ((doc == NULL || doc == PyNone) && get != NULL && PyObjectHasAttrString(get, "doc")) { if (!(getdoc = PyObjectGetAttrString(get, "doc"))) return -1; PyDECREF(getdoc); /* it is INCREF'd again below */ ^^^^^^^^^^^^^^^^^^ doc = getdoc; }
PyXINCREF(get); PyXINCREF(set); PyXINCREF(del); PyXINCREF(doc);
A strange programming style, if you ask me, and I wonder why Coverity doesn't complain about it.
Thomas
- Previous message: [Python-Dev] segmentation fault in Python 2.5b3 (trunk:51066)
- Next message: [Python-Dev] segmentation fault in Python 2.5b3 (trunk:51066)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]