Skip to content

Commit 1f44e77

Browse files
authored
bpo-39497: Remove unused variable from pysqlite_cursor_executescript (GH-18271)
1 parent c38fd0d commit 1f44e77

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Modules/_sqlite/cursor.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,6 @@ static PyObject *
611611
pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args)
612612
{
613613
PyObject* script_obj;
614-
PyObject* script_str = NULL;
615614
const char* script_cstr;
616615
sqlite3_stmt* statement;
617616
int rc;
@@ -685,8 +684,6 @@ pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args)
685684
}
686685

687686
error:
688-
Py_XDECREF(script_str);
689-
690687
if (PyErr_Occurred()) {
691688
return NULL;
692689
} else {

0 commit comments

Comments
 (0)