Fix lru.remove

This commit is contained in:
Jeroen van Rijn
2025-04-29 00:14:46 +02:00
parent 26f1cb493e
commit 8c47d42394
+1 -1
View File
@@ -129,7 +129,7 @@ remove :: proc(c: ^$C/Cache($Key, $Value), key: Key) -> bool {
return false
}
_remove_node(c, e)
free(node, c.node_allocator)
free(e, c.node_allocator)
c.count -= 1
return true
}