content: close writer after opening

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2017-02-24 16:08:31 -08:00
parent a463ba33fc
commit 850f8addc2
No known key found for this signature in database
GPG Key ID: 67B3DED84EDC823F
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ func WriteBlob(ctx context.Context, cs Ingester, ref string, r io.Reader, size i
return nil // all ready present
}
defer cw.Close()
ws, err := cw.Status()
if err != nil {