Merge pull request #3370 from wy65701436/release/2.7-cp-3309

[cherry pick]close the io.ReadCloser from storage driver
pull/3384/head
Milos Gajdos 2021-02-26 09:00:00 +00:00 committed by GitHub
commit cc866a5bf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ func getContent(ctx context.Context, driver driver.StorageDriver, p string) ([]b
if err != nil {
return nil, err
}
defer r.Close()
return readAllLimited(r, maxBlobGetSize)
}