Kaydet (Commit) e98147a8 authored tarafından Walter Dörwald's avatar Walter Dörwald

Fix refcount leak in the UnicodeError constructor:

When parsing the constructor arguments failed, a
reference to the argument tuple was leaked.
üst 68973556
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment