]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39497: Remove unused variable from pysqlite_cursor_executescript (GH-18271)
authorAlex Henrie <alexhenrie24@gmail.com>
Thu, 30 Jan 2020 09:39:26 +0000 (02:39 -0700)
committerGitHub <noreply@github.com>
Thu, 30 Jan 2020 09:39:25 +0000 (12:39 +0300)
Modules/_sqlite/cursor.c

index 47dbc77474120e2f14e9000e3e5bc44ef1113dc3..2302ca9edac2d8cec3f38e21495daa22a21e89a2 100644 (file)
@@ -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 {