Merge pull request #3309 from Mark3K/close-manifests-reader
close the io.ReadCloser from storage driver
This commit is contained in:
commit
6891d94832
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ func getContent(ctx context.Context, driver driver.StorageDriver, p string) ([]b
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
defer r.Close()
|
||||||
|
|
||||||
return readAllLimited(r, maxBlobGetSize)
|
return readAllLimited(r, maxBlobGetSize)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue