[Python-checkins] r78437 - python/branches/py3k/Objects/exceptions.c

benjamin.peterson python-checkins at python.org
Thu Feb 25 02:22:28 CET 2010


Author: benjamin.peterson
Date: Thu Feb 25 02:22:28 2010
New Revision: 78437

Log:
plug reference leak

Modified:
   python/branches/py3k/Objects/exceptions.c

Modified: python/branches/py3k/Objects/exceptions.c
==============================================================================
--- python/branches/py3k/Objects/exceptions.c	(original)
+++ python/branches/py3k/Objects/exceptions.c	Thu Feb 25 02:22:28 2010
@@ -1668,7 +1668,7 @@
             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,


More information about the Python-checkins mailing list