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:
parent
62e88f0fe7
commit
6d2a0bafcd
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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defer blob.Close()
|
||||||
return ioutil.ReadAll(blob)
|
return ioutil.ReadAll(blob)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue