We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2796caf commit 3ed0ccdCopy full SHA for 3ed0ccd
pkg/cortexpb/codec.go
@@ -45,7 +45,7 @@ func (c *cortexCodec) Unmarshal(data mem.BufferSlice, v any) error {
45
err := proto.Unmarshal(buf.ReadOnlyData(), vv)
46
47
if err != nil {
48
- buf.Free()
+ defer buf.Free()
49
return err
50
}
51
0 commit comments