[Python-checkins] cpython: After the jump in line 1051 unicode_tmp is NULL. Found by Coverity.

stefan.krah python-checkins at python.org
Thu Sep 6 13:09:21 CEST 2012


http://hg.python.org/cpython/rev/dc2909a62262
changeset:   78860:dc2909a62262
user:        Stefan Krah <skrah at bytereef.org>
date:        Thu Sep 06 13:02:46 2012 +0200
summary:
  After the jump in line 1051 unicode_tmp is NULL. Found by Coverity.

files:
  Python/formatter_unicode.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c
--- a/Python/formatter_unicode.c
+++ b/Python/formatter_unicode.c
@@ -1099,7 +1099,7 @@
                          &locale, 0);
 
 done:
-    Py_DECREF(unicode_tmp);
+    Py_XDECREF(unicode_tmp);
     free_locale_info(&locale);
     return result;
 }

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list