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
}
defer blob.Close()
return ioutil.ReadAll(blob)
}