bpo-41861: Convert _sqlite3 RowType and StatementType to heap types (GH-22444)

This commit is contained in:
Erlend Egeberg Aasland 2020-10-01 15:24:31 +02:00 committed by GitHub
parent fa7ce08017
commit 9031bd4fa4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 72 additions and 119 deletions

View file

@ -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;
}