Skip to content

Commit b080ff7

Browse files
author
Erlend E. Aasland
committed
Harden cache clear
1 parent 590ff8e commit b080ff7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_sqlite/cache.c

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ cache_clear(pysqlite_Cache *self)
124124
{
125125
/* iterate over all nodes and deallocate them */
126126
pysqlite_Node *node = self->first;
127+
self->first = NULL;
127128
while (node) {
128129
pysqlite_Node *delete_node = node;
129130
node = node->next;

0 commit comments

Comments
 (0)