]> granicus.if.org Git - python/commitdiff
After the jump in line 1051 unicode_tmp is NULL. Found by Coverity.
authorStefan Krah <skrah@bytereef.org>
Thu, 6 Sep 2012 11:02:46 +0000 (13:02 +0200)
committerStefan Krah <skrah@bytereef.org>
Thu, 6 Sep 2012 11:02:46 +0000 (13:02 +0200)
Python/formatter_unicode.c

index a263efc84f8baed501167d237b8eaaca1dea02da..aa62502dbef118294c4f8f238ecc098c14b10283 100644 (file)
@@ -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;
 }