plug reference leak

This commit is contained in:
Benjamin Peterson 2010-02-25 01:22:28 +00:00
parent 1373a0781e
commit c5f4e1ecfd
1 changed files with 1 additions and 1 deletions

View File

@ -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,