From 850f8addc26edcdc1a2336e20dfdc0ab10925fc9 Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Fri, 24 Feb 2017 16:08:31 -0800 Subject: [PATCH] content: close writer after opening Signed-off-by: Stephen J Day --- content/helpers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/content/helpers.go b/content/helpers.go index 6fa4b2d..fc37e13 100644 --- a/content/helpers.go +++ b/content/helpers.go @@ -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 {