mirror of
https://github.com/distribution/distribution.git
synced 2025-09-11 11:49:40 +00:00
registry/storage: close filereader after allocation
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
@@ -227,6 +227,7 @@ func (bw *blobWriter) validateBlob(ctx context.Context, desc distribution.Descri
|
||||
if err != nil {
|
||||
return distribution.Descriptor{}, err
|
||||
}
|
||||
defer fr.Close()
|
||||
|
||||
tr := io.TeeReader(fr, digester.Hash())
|
||||
|
||||
|
Reference in New Issue
Block a user