From f8d5503dbce4fc1bb18827fe421c343f24b5e22c Mon Sep 17 00:00:00 2001 From: Ilya Popovnin Date: Tue, 18 Jul 2023 12:53:11 +0300 Subject: [PATCH] fix ticker leak --- cache.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cache.go b/cache.go index 2b9a1d51..8d791b42 100644 --- a/cache.go +++ b/cache.go @@ -366,6 +366,7 @@ func (c *Cache) Close() { close(c.stop) close(c.setBuf) c.policy.Close() + c.cleanupTicker.Stop() c.isClosed = true }