Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 30161:54617ed2d830 2.3
Backport checkin:
Fix another refcounting leak (in PyUnicode_DecodeUnicodeEscape()).
| author | Walter Dörwald <walter@livinglogic.de> |
|---|---|
| date | Fri, 15 Aug 2003 15:01:26 +0000 |
| parents | 5686ca297f55 |
| children | 443533d08783 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Fri Aug 15 12:26:05 2003 +0000 +++ b/Objects/unicodeobject.c Fri Aug 15 15:01:26 2003 +0000 @@ -1834,6 +1834,8 @@ } if (_PyUnicode_Resize(&v, (int)(p - PyUnicode_AS_UNICODE(v)))) goto onError; + Py_XDECREF(errorHandler); + Py_XDECREF(exc); return (PyObject *)v; ucnhashError:
