Skip to content

Commit ab91623

Browse files
committed
delete req.Free() due to http path
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
1 parent 7221087 commit ab91623

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

pkg/util/push/push.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ func Handler(remoteWrite2Enabled bool, acceptUnknownRemoteWriteContentType bool,
9696

9797
req := cortexpb.PreallocWriteRequestV2FromPool()
9898
// v1 request is put back into the pool by the Distributor.
99-
defer func() {
100-
cortexpb.ReuseWriteRequestV2(req)
101-
req.Free()
102-
}()
99+
defer cortexpb.ReuseWriteRequestV2(req)
103100

104101
err = util.ParseProtoReader(ctx, r.Body, int(r.ContentLength), maxRecvMsgSize, req, util.RawSnappy)
105102
if err != nil {

0 commit comments

Comments
 (0)