Fix refcount leak in the UnicodeError constructor:

When parsing the constructor arguments failed, a
reference to the argument tuple was leaked.
This commit is contained in:
Walter Dörwald 2003-08-14 20:59:07 +00:00
parent 689735562d
commit e98147a8e5
1 changed files with 1 additions and 1 deletions

View File

@ -1191,7 +1191,7 @@ UnicodeError__init__(PyObject *self, PyObject *args, PyTypeObject *objecttype)
&PyInt_Type, &start,
&PyInt_Type, &end,
&PyString_Type, &reason))
return NULL;
goto finally;
if (PyObject_SetAttrString(self, "args", args))
goto finally;