diff --git a/pkg/ingester/recalculate_owned_streams.go b/pkg/ingester/recalculate_owned_streams.go index 4165537e9eade..5813cc58e45e7 100644 --- a/pkg/ingester/recalculate_owned_streams.go +++ b/pkg/ingester/recalculate_owned_streams.go @@ -129,9 +129,9 @@ func (s *ownedStreamsIngesterStrategy) isOwnedStream(str *stream) (bool, error) hostsBuf := s.hostsBufPool.Get().([]string) zoneBuf := s.zoneBufPool.Get().([]string) defer func() { - s.descsBufPool.Put(descsBuf) - s.hostsBufPool.Put(hostsBuf) - s.zoneBufPool.Put(zoneBuf) + s.descsBufPool.Put(&descsBuf) + s.hostsBufPool.Put(&hostsBuf) + s.zoneBufPool.Put(&zoneBuf) }() replicationSet, err := s.ingestersRing.Get(lokiring.TokenFor(str.tenant, str.labelsString), ring.WriteNoExtend, descsBuf, hostsBuf, zoneBuf)