mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue