From f88ff9f3c66357a7afcb004d36177125a08da87f Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Wed, 21 Jun 2023 18:23:06 +0300 Subject: [PATCH] Do not free simple hash entries --- pgxn/neon/access_stat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/pgxn/neon/access_stat.c b/pgxn/neon/access_stat.c index 772ece48a4..b32fee9ca7 100644 --- a/pgxn/neon/access_stat.c +++ b/pgxn/neon/access_stat.c @@ -124,7 +124,6 @@ bool is_sequential_access(RelFileNode rnode, ForkNumber forkNum, BlockNumber blk /* Hash overflow: find candidate for replacement */ AccessStatEntry* victim = dlist_container(AccessStatEntry, lru_node, dlist_pop_head_node(&lru)); as_delete_item(hash, victim); - pfree(victim); } entry = as_insert(hash, rnode, &found); Assert(!found);