bpo-39497: Remove unused variable from pysqlite_cursor_executescript (GH-18271)

This commit is contained in:
Alex Henrie 2020-01-30 02:39:26 -07:00 committed by GitHub
parent c38fd0df2b
commit 1f44e775df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -611,7 +611,6 @@ static PyObject *
pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args) pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args)
{ {
PyObject* script_obj; PyObject* script_obj;
PyObject* script_str = NULL;
const char* script_cstr; const char* script_cstr;
sqlite3_stmt* statement; sqlite3_stmt* statement;
int rc; int rc;
@ -685,8 +684,6 @@ pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args)
} }
error: error:
Py_XDECREF(script_str);
if (PyErr_Occurred()) { if (PyErr_Occurred()) {
return NULL; return NULL;
} else { } else {