Skip to content

Commit

Permalink
Merge pull request #3370 from wy65701436/release/2.7-cp-3309
Browse files Browse the repository at this point in the history
[cherry pick]close the io.ReadCloser from storage driver
  • Loading branch information
milosgajdos committed Feb 26, 2021
2 parents 6300300 + 3fe1d67 commit cc866a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions registry/storage/io.go
Expand Up @@ -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)
}
Expand Down

0 comments on commit cc866a5

Please sign in to comment.