mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Fix another refcounting leak (in PyUnicode_DecodeUnicodeEscape()).
This commit is contained in:
parent
b2c7de4667
commit
d4ade0885c
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue