]> granicus.if.org Git - python/commitdiff
Fix another refcounting leak (in PyUnicode_DecodeUnicodeEscape()).
authorWalter Dörwald <walter@livinglogic.de>
Fri, 15 Aug 2003 15:00:26 +0000 (15:00 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Fri, 15 Aug 2003 15:00:26 +0000 (15:00 +0000)
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: