close s3 response body to prevent leaks

Fixes #2018
This commit is contained in:
Matthias Radestock
2017-04-14 00:27:41 +01:00
parent 7c22c97382
commit 46f288bb6d

View File

@@ -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)
}