summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/cursor.c
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2020-10-01 13:24:31 (GMT)
committerGitHub <noreply@github.com>2020-10-01 13:24:31 (GMT)
commit9031bd4fa42dbb0f25aee9286154ad4bf60df3f8 (patch)
treeec8661b20d139b51b2d60e512502cbbe804d36a0 /Modules/_sqlite/cursor.c
parentfa7ce080175f65d678a7d5756c94f82887fc9803 (diff)
downloadcpython-9031bd4fa42dbb0f25aee9286154ad4bf60df3f8.zip
cpython-9031bd4fa42dbb0f25aee9286154ad4bf60df3f8.tar.gz
cpython-9031bd4fa42dbb0f25aee9286154ad4bf60df3f8.tar.bz2
bpo-41861: Convert _sqlite3 RowType and StatementType to heap types (GH-22444)
Diffstat (limited to 'Modules/_sqlite/cursor.c')
-rw-r--r--Modules/_sqlite/cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
index 5cfb4b9..dbbdb12 100644
--- a/Modules/_sqlite/cursor.c
+++ b/Modules/_sqlite/cursor.c
@@ -472,7 +472,7 @@ _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* args)
if (self->statement->in_use) {
Py_SETREF(self->statement,
- PyObject_New(pysqlite_Statement, &pysqlite_StatementType));
+ PyObject_New(pysqlite_Statement, pysqlite_StatementType));
if (!self->statement) {
goto error;
}