diff --git a/pkg/store/bucket.go b/pkg/store/bucket.go index 7ab47f4cbe..744823c9fe 100644 --- a/pkg/store/bucket.go +++ b/pkg/store/bucket.go @@ -1691,7 +1691,9 @@ func (s *BucketStore) Series(req *storepb.SeriesRequest, seriesSrv storepb.Store // Merge the sub-results from each selected block. tracing.DoInSpan(ctx, "bucket_store_merge_all", func(ctx context.Context) { begin := time.Now() - set := NewResponseDeduplicator(NewProxyResponseLoserTree(respSets...)) + lt := NewProxyResponseLoserTree(respSets...) + defer lt.Close() + set := NewResponseDeduplicator(lt) i := 0 for set.Next() { i++