diff --git a/registry/client_factory.go b/registry/client_factory.go
index <HASH>..<HASH> 100644
--- a/registry/client_factory.go
+++ b/registry/client_factory.go
@@ -87,6 +87,7 @@ func (f *RemoteClientFactory) ClientFor(repo image.CanonicalName, creds Credenti
 		if err != nil {
 			return nil, err
 		}
+		defer res.Body.Close()
 		if err = manager.AddResponse(res); err != nil {
 			return nil, err
 		}
Close response body of registry challenges request

The request body was left open