mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Always close response body (#10697)
This commit is contained in:
parent
1aec168c84
commit
73a41a725a
@ -42,8 +42,8 @@ func (adm *AdminClient) GetBucketBandwidth(ctx context.Context, buckets ...strin
|
||||
}
|
||||
|
||||
resp, err := adm.executeMethod(ctx, http.MethodGet, reqData)
|
||||
defer closeResponse(resp)
|
||||
if err != nil {
|
||||
closeResponse(resp)
|
||||
return bandwidth.Report{}, err
|
||||
}
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
|
Loading…
Reference in New Issue
Block a user