Skip to content

Commit

Permalink
content: close writer after opening
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen J Day <stephen.day@docker.com>
  • Loading branch information
stevvooe committed Feb 25, 2017
1 parent a463ba3 commit 850f8ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions content/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 850f8ad

Please sign in to comment.