fix LRUCache prune()

This commit is contained in:
XieHan
2022-08-25 15:18:17 +08:00
parent c470b0a716
commit c8c5da70c7

View File

@@ -105,7 +105,7 @@ public:
list_for_each_safe(pos, tmp, &this->not_use)
{
e = list_entry(&pos, Handle, list);
e = list_entry(pos, Handle, list);
assert(e->ref == 1);
rb_erase(&e->rb);
this->erase_node(e);