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

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 return nil // all ready present
} }
defer cw.Close()
ws, err := cw.Status() ws, err := cw.Status()
if err != nil { if err != nil {