Commit 7a6ff8ca authored by Walter Dörwald's avatar Walter Dörwald

Fix another refcounting leak (in PyUnicode_DecodeUnicodeEscape()).

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