From: Andy Lester Date: Sun, 1 Mar 2020 21:26:43 +0000 (-0600) Subject: closes bpo-39803: Remove unused str from _PyLong_FormatAdvancedWriter. (GH-18709) X-Git-Tag: v3.9.0a5~208 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3fe9117779f0c75f7a0c3d7748c5bf281fbc1e4c;p=thirdparty%2FPython%2Fcpython.git closes bpo-39803: Remove unused str from _PyLong_FormatAdvancedWriter. (GH-18709) --- diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index 41a2478e0a81..705e12dd446d 100644 --- a/Python/formatter_unicode.c +++ b/Python/formatter_unicode.c @@ -1458,7 +1458,7 @@ _PyLong_FormatAdvancedWriter(_PyUnicodeWriter *writer, PyObject *format_spec, Py_ssize_t start, Py_ssize_t end) { - PyObject *tmp = NULL, *str = NULL; + PyObject *tmp = NULL; InternalFormatSpec format; int result = -1; @@ -1511,7 +1511,6 @@ _PyLong_FormatAdvancedWriter(_PyUnicodeWriter *writer, done: Py_XDECREF(tmp); - Py_XDECREF(str); return result; }