From: Alex Henrie Date: Thu, 30 Jan 2020 09:39:26 +0000 (-0700) Subject: bpo-39497: Remove unused variable from pysqlite_cursor_executescript (GH-18271) X-Git-Tag: v3.9.0a4~172 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f44e775df8e7ec3ca60a1135cb3279f8b9dca3e;p=thirdparty%2FPython%2Fcpython.git bpo-39497: Remove unused variable from pysqlite_cursor_executescript (GH-18271) --- diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c index 47dbc7747412..2302ca9edac2 100644 --- a/Modules/_sqlite/cursor.c +++ b/Modules/_sqlite/cursor.c @@ -611,7 +611,6 @@ static PyObject * pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args) { PyObject* script_obj; - PyObject* script_str = NULL; const char* script_cstr; sqlite3_stmt* statement; int rc; @@ -685,8 +684,6 @@ pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args) } error: - Py_XDECREF(script_str); - if (PyErr_Occurred()) { return NULL; } else {