diff Python/formatter_unicode.c @ 78860:dc2909a62262

After the jump in line 1051 unicode_tmp is NULL. Found by Coverity.
author Stefan Krah <skrah@bytereef.org>
date Thu, 06 Sep 2012 13:02:46 +0200
parents aaa68dce117e
children c08bcf5302ec 559a430e563c
line wrap: on
line diff
--- a/Python/formatter_unicode.c	Thu Sep 06 09:42:29 2012 +0200
+++ b/Python/formatter_unicode.c	Thu Sep 06 13:02:46 2012 +0200
@@ -1099,7 +1099,7 @@
                          &locale, 0);
 
 done:
-    Py_DECREF(unicode_tmp);
+    Py_XDECREF(unicode_tmp);
     free_locale_info(&locale);
     return result;
 }