Skip to content

Commit 590ff8e

Browse files
author
Erlend E. Aasland
committed
Address review: visit node->key, node->data, and con->isolation_level
1 parent 34928ed commit 590ff8e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Modules/_sqlite/cache.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ pysqlite_new_node(PyObject *key, PyObject *data)
4747
static int
4848
node_traverse(pysqlite_Node *self, visitproc visit, void *arg)
4949
{
50+
Py_VISIT(self->key);
51+
Py_VISIT(self->data);
5052
Py_VISIT(Py_TYPE(self));
5153
return 0;
5254
}

Modules/_sqlite/connection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ static int
229229
connection_traverse(pysqlite_Connection *self, visitproc visit, void *arg)
230230
{
231231
Py_VISIT(self->statement_cache);
232+
Py_VISIT(self->isolation_level);
232233
Py_VISIT(self->function_pinboard_trace_callback);
233234
Py_VISIT(self->function_pinboard_progress_handler);
234235
Py_VISIT(self->function_pinboard_authorizer_cb);

0 commit comments

Comments
 (0)