diff --git a/registry/storage/driver/azure/azure.go b/registry/storage/driver/azure/azure.go index b06b0876..b081f31b 100644 --- a/registry/storage/driver/azure/azure.go +++ b/registry/storage/driver/azure/azure.go @@ -111,6 +111,7 @@ func (d *driver) GetContent(ctx context.Context, path string) ([]byte, error) { return nil, err } + defer blob.Close() return ioutil.ReadAll(blob) }