Merge pull request #1538 from runcom/body-leaks
registry: client: repository: close response body
This commit is contained in:
commit
609aa7cc53
@ -308,6 +308,7 @@ check:
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return distribution.Descriptor{}, err
|
return distribution.Descriptor{}, err
|
||||||
}
|
}
|
||||||
|
defer resp.Body.Close()
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case resp.StatusCode >= 200 && resp.StatusCode < 400:
|
case resp.StatusCode >= 200 && resp.StatusCode < 400:
|
||||||
|
Loading…
Reference in New Issue
Block a user