[Python-checkins] python/dist/src/Python exceptions.c, 1.44.10.1,
1.44.10.2
doerwalter at users.sourceforge.net
doerwalter at users.sourceforge.net
Thu Aug 14 15:00:31 EDT 2003
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv7474/Python
Modified Files:
Tag: release23-maint
exceptions.c
Log Message:
Backport checkin:
Fix refcount leak in the UnicodeError constructor:
When parsing the constructor arguments failed, a
reference to the argument tuple was leaked.
Index: exceptions.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/exceptions.c,v
retrieving revision 1.44.10.1
retrieving revision 1.44.10.2
diff -C2 -d -r1.44.10.1 -r1.44.10.2
*** exceptions.c 12 Aug 2003 17:38:21 -0000 1.44.10.1
--- exceptions.c 14 Aug 2003 21:00:28 -0000 1.44.10.2
***************
*** 1192,1196 ****
&PyInt_Type, &end,
&PyString_Type, &reason))
! return NULL;
if (PyObject_SetAttrString(self, "args", args))
--- 1192,1196 ----
&PyInt_Type, &end,
&PyString_Type, &reason))
! goto finally;
if (PyObject_SetAttrString(self, "args", args))
More information about the Python-checkins
mailing list