forked from TrueCloudLab/distribution
Merge pull request #2025 from ahmetalpbalkan/pr-azure-memleak1
storagedriver/azure: close leaking response body
This commit is contained in:
commit
994d1a56ff
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue