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:
Ahmet Alp Balkan 2016-10-28 15:13:22 -07:00
parent 62e88f0fe7
commit 6d2a0bafcd
No known key found for this signature in database
GPG key ID: F84A66B2CBC29F60

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)
}