diff options
author | Alex Henrie <alexhenrie24@gmail.com> | 2020-01-30 09:39:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 09:39:25 (GMT) |
commit | 1f44e775df8e7ec3ca60a1135cb3279f8b9dca3e (patch) | |
tree | f7c3cef6e6de67a9d5103ba4977f4c2e0a2a70ae /Modules/_sqlite/cursor.c | |
parent | c38fd0df2b4cbc1cc906d8dfe23f63b67cd6965f (diff) | |
download | cpython-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/_sqlite/cursor.c')
-rw-r--r-- | Modules/_sqlite/cursor.c | 3 |
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 { |