Skip to content

Commit cd73f59

Browse files
committed
close the body
Signed-off-by: Grant Linville <grant@acorn.io>
1 parent a297bd0 commit cd73f59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/engine/daemon.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ func (e *Engine) startDaemon(tool types.Tool) (string, error) {
270270
_ = resp.Body.Close()
271271
}()
272272
return url, nil
273+
} else {
274+
_ = resp.Body.Close()
273275
}
274276
select {
275277
case <-killedCtx.Done():

0 commit comments

Comments
 (0)