storagedriver/azure: close leaking response body
In GetContent() we read the bytes from a blob but do not close the underlying response body. Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user