From: Benjamin Peterson Date: Thu, 25 Feb 2010 01:22:28 +0000 (+0000) Subject: plug reference leak X-Git-Tag: v3.2a1~1631 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5f4e1ecfd219dd562993e3cb070956150ee7bd8;p=thirdparty%2FPython%2Fcpython.git plug reference leak --- diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 7025b6f8aa03..b432d6bab2f3 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -1668,7 +1668,7 @@ UnicodeTranslateError_str(PyObject *self) fmt = "can't translate character '\\u%04x' in position %zd: %U"; else fmt = "can't translate character '\\U%08x' in position %zd: %U"; - return PyUnicode_FromFormat( + result = PyUnicode_FromFormat( fmt, badchar, uself->start,