Fix another refcounting leak (in PyUnicode_DecodeUnicodeEscape()).

This commit is contained in:
Walter Dörwald 2003-08-15 15:00:26 +00:00
parent b2c7de4667
commit d4ade0885c

View file

@ -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: