After the jump in line 1051 unicode_tmp is NULL. Found by Coverity.
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c
index a263efc..aa62502 100644
--- 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;
 }