Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address review: visit node->key, node->data, and con->isolation_level
  • Loading branch information
Erlend E. Aasland
Erlend E. Aasland committed May 23, 2021
commit 590ff8ed081de39bd217a59dbf60d64e4a4c3ef4
2 changes: 2 additions & 0 deletions Modules/_sqlite/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ pysqlite_new_node(PyObject *key, PyObject *data)
static int
node_traverse(pysqlite_Node *self, visitproc visit, void *arg)
{
Py_VISIT(self->key);
Py_VISIT(self->data);
Py_VISIT(Py_TYPE(self));
Comment thread
erlend-aasland marked this conversation as resolved.
return 0;
}
Expand Down
1 change: 1 addition & 0 deletions Modules/_sqlite/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ static int
connection_traverse(pysqlite_Connection *self, visitproc visit, void *arg)
{
Py_VISIT(self->statement_cache);
Comment thread
erlend-aasland marked this conversation as resolved.
Py_VISIT(self->isolation_level);
Py_VISIT(self->function_pinboard_trace_callback);
Py_VISIT(self->function_pinboard_progress_handler);
Py_VISIT(self->function_pinboard_authorizer_cb);
Expand Down