summaryrefslogtreecommitdiffstats
path: root/Objects/exceptions.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-02-25 01:22:28 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-02-25 01:22:28 (GMT)
commitc5f4e1ecfd219dd562993e3cb070956150ee7bd8 (patch)
tree7ff6f0f9d45a76955405bc8ee7e03cbe4a2a0fc4 /Objects/exceptions.c
parent1373a0781e28a6aaa595ca3ae145ccd586004ac7 (diff)
downloadcpython-c5f4e1ecfd219dd562993e3cb070956150ee7bd8.zip
cpython-c5f4e1ecfd219dd562993e3cb070956150ee7bd8.tar.gz
cpython-c5f4e1ecfd219dd562993e3cb070956150ee7bd8.tar.bz2
plug reference leak
Diffstat (limited to 'Objects/exceptions.c')
-rw-r--r--Objects/exceptions.c2
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,