mirror of
https://github.com/distribution/distribution.git
synced 2025-09-12 21:28:59 +00:00
registry/storage: close filereader after allocation
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
@@ -91,6 +91,7 @@ func (bw *blobWriter) resumeDigestAt(ctx context.Context, offset int64) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer fr.Close()
|
||||
|
||||
if _, err = fr.Seek(int64(h.Len()), os.SEEK_SET); err != nil {
|
||||
return fmt.Errorf("unable to seek to layer reader offset %d: %s", h.Len(), err)
|
||||
|
Reference in New Issue
Block a user