Browse Source

Fix lru.remove

Jeroen van Rijn 3 months ago
parent
commit
8c47d42394
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/container/lru/lru_cache.odin

+ 1 - 1
core/container/lru/lru_cache.odin

@@ -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
 }