diff --git a/docs/client/repository.go b/docs/client/repository.go index 830749f1..936a3f1b 100644 --- a/docs/client/repository.go +++ b/docs/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: