Merge pull request #2025 from ahmetalpbalkan/pr-azure-memleak1

storagedriver/azure: close leaking response body
This commit is contained in:
Derek McGowan 2016-10-28 16:58:32 -07:00 committed by GitHub
commit 994d1a56ff

View file

@ -111,6 +111,7 @@ func (d *driver) GetContent(ctx context.Context, path string) ([]byte, error) {
return nil, err return nil, err
} }
defer blob.Close()
return ioutil.ReadAll(blob) return ioutil.ReadAll(blob)
} }