From 2c2cd9b86a2e738b1ccf379971e4a0235ab9c758 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Fri, 16 Aug 2019 13:39:23 -0700 Subject: [PATCH] builder-next: close build context upload on cancel Signed-off-by: Tonis Tiigi --- builder/builder-next/reqbodyhandler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/builder-next/reqbodyhandler.go b/builder/builder-next/reqbodyhandler.go index 48433908fb..b07503de13 100644 --- a/builder/builder-next/reqbodyhandler.go +++ b/builder/builder-next/reqbodyhandler.go @@ -35,6 +35,7 @@ func (h *reqBodyHandler) newRequest(rc io.ReadCloser) (string, func()) { h.mu.Lock() delete(h.requests, id) h.mu.Unlock() + rc.Close() } }