1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

Merge pull request #1538 from runcom/body-leaks

registry: client: repository: close response body
This commit is contained in:
Richard Scothern
2016-03-16 15:58:22 -07:00

View File

@@ -308,6 +308,7 @@ check:
if err != nil {
return distribution.Descriptor{}, err
}
defer resp.Body.Close()
switch {
case resp.StatusCode >= 200 && resp.StatusCode < 400: