push purged item to the free list

This commit is contained in:
Nikita Smith committed 2026-08-25 00:10:51 -07:00
1 parent ae89d8ea88
commit ff1877dfa2
1 file changed
+1
+1
View File
@@ -334,6 +334,7 @@ hash_table_purge_item(HashTable *ht, U64 hash, BucketNode *node)
{
U64 bucket_idx = hash % ht->cap;
DLLRemove(ht->buckets[bucket_idx].first, ht->buckets[bucket_idx].last, node);
SLLQueuePush(ht->free_buckets.first, ht->free_buckets.last, node);
ht->count -= 1;
}