summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2020-01-30 09:39:26 (GMT)
committerGitHub <noreply@github.com>2020-01-30 09:39:25 (GMT)
commit1f44e775df8e7ec3ca60a1135cb3279f8b9dca3e (patch)
treef7c3cef6e6de67a9d5103ba4977f4c2e0a2a70ae /Modules
parentc38fd0df2b4cbc1cc906d8dfe23f63b67cd6965f (diff)
downloadcpython-1f44e775df8e7ec3ca60a1135cb3279f8b9dca3e.zip
cpython-1f44e775df8e7ec3ca60a1135cb3279f8b9dca3e.tar.gz
cpython-1f44e775df8e7ec3ca60a1135cb3279f8b9dca3e.tar.bz2
bpo-39497: Remove unused variable from pysqlite_cursor_executescript (GH-18271)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sqlite/cursor.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
index 47dbc77..2302ca9 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 {