diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-02-25 01:22:28 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-02-25 01:22:28 (GMT) |
commit | c5f4e1ecfd219dd562993e3cb070956150ee7bd8 (patch) | |
tree | 7ff6f0f9d45a76955405bc8ee7e03cbe4a2a0fc4 /Objects/exceptions.c | |
parent | 1373a0781e28a6aaa595ca3ae145ccd586004ac7 (diff) | |
download | cpython-c5f4e1ecfd219dd562993e3cb070956150ee7bd8.zip cpython-c5f4e1ecfd219dd562993e3cb070956150ee7bd8.tar.gz cpython-c5f4e1ecfd219dd562993e3cb070956150ee7bd8.tar.bz2 |
plug reference leak
Diffstat (limited to 'Objects/exceptions.c')
-rw-r--r-- | Objects/exceptions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 7025b6f..b432d6b 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, |