From b96f6ca3f7126626e747b82fe76934384029af2d Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 30 Jun 2021 17:12:36 +0100 Subject: [PATCH] Free up pdus slice so only references remaining are in channel --- federationapi/routing/send.go | 1 + 1 file changed, 1 insertion(+) diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index 6971d5ba..dca6a7ef 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -260,6 +260,7 @@ func (t *txnReq) processTransaction(ctx context.Context) (*gomatrixserverlib.Res for _, e := range pdus { perRoom[e.RoomID()] <- e.Unwrap() } + pdus = nil // nolint:ineffassign var wg sync.WaitGroup wg.Add(len(perRoom))