diff --git a/registry/client/repository.go b/registry/client/repository.go index 830749f1..936a3f1b 100644 --- a/registry/client/repository.go +++ b/registry/client/repository.go @@ -308,6 +308,7 @@ check: if err != nil { return distribution.Descriptor{}, err } + defer resp.Body.Close() switch { case resp.StatusCode >= 200 && resp.StatusCode < 400: