Fix LRUCache memory leak. (#4520)
This commit is contained in:
@@ -108,6 +108,7 @@ export class LRUCache {
|
||||
this.#refs.delete(this.#tail.key);
|
||||
|
||||
this.#tail = this.#tail.prev;
|
||||
this.#tail.next = this.#head;
|
||||
} else {
|
||||
this.#length += 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user