summaryrefslogtreecommitdiffstats
path: root/Python/formatter_unicode.c
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-09-06 11:02:46 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-09-06 11:02:46 (GMT)
commitd9c1bf7f1f4d5436956c3629ed97cec507463951 (patch)
tree2d7f0f8e0fe04e99cb386bb540b4fd6fad6beb88 /Python/formatter_unicode.c
parent527a2400fb236bb4ab9fa81ad90d932bab6da071 (diff)
downloadcpython-d9c1bf7f1f4d5436956c3629ed97cec507463951.zip
cpython-d9c1bf7f1f4d5436956c3629ed97cec507463951.tar.gz
cpython-d9c1bf7f1f4d5436956c3629ed97cec507463951.tar.bz2
After the jump in line 1051 unicode_tmp is NULL. Found by Coverity.
Diffstat (limited to 'Python/formatter_unicode.c')
-rw-r--r--Python/formatter_unicode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c
index a263efc..aa62502 100644
--- a/Python/formatter_unicode.c
+++ b/Python/formatter_unicode.c
@@ -1099,7 +1099,7 @@ format_float_internal(PyObject *value,
&locale, 0);
done:
- Py_DECREF(unicode_tmp);
+ Py_XDECREF(unicode_tmp);
free_locale_info(&locale);
return result;
}