From 8f8075bc14ccd2e039836cffd99414ca0f35e11c Mon Sep 17 00:00:00 2001 From: zviRosenfeldRedis Date: Tue, 28 Nov 2023 10:24:43 +0200 Subject: [PATCH] Fixed possible memory leak --- proc/grouper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proc/grouper.go b/proc/grouper.go index f40aff4..a02e5ec 100644 --- a/proc/grouper.go +++ b/proc/grouper.go @@ -139,6 +139,7 @@ func (g *Grouper) groups(tracked []Update) GroupByName { if _, ok := groups[gname]; !ok { if g.removeEmptyGroups { delete(g.groupAccum, gname) + delete(g.threadAccum, gname) } else { groups[gname] = Group{Counts: gcounts} }