From d4ade0885c9a1bf7013b555c93060e0126bfa7eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Walter=20D=C3=B6rwald?= Date: Fri, 15 Aug 2003 15:00:26 +0000 Subject: [PATCH] Fix another refcounting leak (in PyUnicode_DecodeUnicodeEscape()). --- Objects/unicodeobject.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 6044a56111..694c174022 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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: -- 2.50.1