Fix LRUCache memory leak. (#4520)

This commit is contained in:
Gérard Dethier
2022-02-02 16:46:28 +02:00
committed by GitHub
parent 3063763a18
commit 9f5232019e
+1
View File
@@ -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;
}