From d9c1bf7f1f4d5436956c3629ed97cec507463951 Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Thu, 6 Sep 2012 13:02:46 +0200 Subject: [PATCH] After the jump in line 1051 unicode_tmp is NULL. Found by Coverity. --- Python/formatter_unicode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index a263efc84f8..aa62502dbef 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; }