mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Merge pull request #2442 from weaveworks/2018-close-s3-response
close s3 response body to prevent leaks Fixes #2018.
This commit is contained in:
@@ -82,6 +82,7 @@ func (store *S3Store) fetchReport(ctx context.Context, key string) (*report.Repo
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
return report.MakeFromBinary(resp.Body)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user