]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport checkin:
authorWalter Dörwald <walter@livinglogic.de>
Fri, 15 Aug 2003 15:01:26 +0000 (15:01 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Fri, 15 Aug 2003 15:01:26 +0000 (15:01 +0000)
Fix another refcounting leak (in PyUnicode_DecodeUnicodeEscape()).

Objects/unicodeobject.c

index 6044a561112b690f58a4c764c8c5dba71f83959e..694c17402233a0f65724f1ac4e7f9714e72ba978 100644 (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: