Skip to content

Commit

Permalink
fix: close res body (#12444)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
Co-authored-by: Michel Hollands <[email protected]>
  • Loading branch information
testwill and MichelHollands authored Apr 9, 2024
1 parent 060b6c2 commit 616977a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions integration/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ func (c *Client) Metrics() (string, error) {
if err != nil {
return "", err
}
defer res.Body.Close()

var sb strings.Builder
if _, err := io.Copy(&sb, res.Body); err != nil {
Expand Down

0 comments on commit 616977a

Please sign in to comment.