Commit d4ade088 authored by Walter Dörwald's avatar Walter Dörwald

Fix another refcounting leak (in PyUnicode_DecodeUnicodeEscape()).

parent b2c7de46
...@@ -1834,6 +1834,8 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s, ...@@ -1834,6 +1834,8 @@ PyObject *PyUnicode_DecodeUnicodeEscape(const char *s,
} }
if (_PyUnicode_Resize(&v, (int)(p - PyUnicode_AS_UNICODE(v)))) if (_PyUnicode_Resize(&v, (int)(p - PyUnicode_AS_UNICODE(v))))
goto onError; goto onError;
Py_XDECREF(errorHandler);
Py_XDECREF(exc);
return (PyObject *)v; return (PyObject *)v;
ucnhashError: ucnhashError:
......
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