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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy