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:
parent
689735562d
commit
e98147a8e5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue