diff options
author | Stefan Krah <skrah@bytereef.org> | 2012-09-06 13:02:46 +0200 |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2012-09-06 13:02:46 +0200 |
commit | fe140a41154b7e9801ddadef167374d4b8cdfdcf (patch) | |
tree | 21152993452b94783c12b8015e43a6e186eb8f4e /Python/formatter_unicode.c | |
parent | 87d3cafcb7f8d7c893a6e0646f9d47409ccdf1a9 (diff) | |
download | cpython-fe140a41154b7e9801ddadef167374d4b8cdfdcf.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index a263efc84f..aa62502dbe 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; } |