[Python-checkins] python/dist/src/Modules parsermodule.c,2.68.6.2,2.68.6.3
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Wed, 09 Apr 2003 11:19:28 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv28583
Modified Files:
Tag: release22-maint
parsermodule.c
Log Message:
Backport reference leak fix from HEAD revision 1.79.
Index: parsermodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/parsermodule.c,v
retrieving revision 2.68.6.2
retrieving revision 2.68.6.3
diff -C2 -d -r2.68.6.2 -r2.68.6.3
*** parsermodule.c 10 Feb 2003 01:57:51 -0000 2.68.6.2
--- parsermodule.c 9 Apr 2003 18:19:24 -0000 2.68.6.3
***************
*** 682,686 ****
"second item in terminal node must be a string,"
" found %s",
! ((PyTypeObject*)PyObject_Type(temp))->tp_name);
Py_DECREF(temp);
return 0;
--- 682,686 ----
"second item in terminal node must be a string,"
" found %s",
! temp->ob_type->tp_name);
Py_DECREF(temp);
return 0;
***************
*** 695,699 ****
"third item in terminal node must be an"
" integer, found %s",
! ((PyTypeObject*)PyObject_Type(temp))->tp_name);
Py_DECREF(o);
Py_DECREF(temp);
--- 695,699 ----
"third item in terminal node must be an"
" integer, found %s",
! temp->ob_type->tp_name);
Py_DECREF(o);
Py_DECREF(temp);