Skip to content

Commit 5c911e1

Browse files
committed
close the body
Signed-off-by: Grant Linville <[email protected]>
1 parent 868dded commit 5c911e1

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
@@ -259,6 +259,8 @@ func (e *Engine) startDaemon(tool types.Tool) (string, error) {
259259
_ = resp.Body.Close()
260260
}()
261261
return url, nil
262+
} else {
263+
_ = resp.Body.Close()
262264
}
263265
select {
264266
case <-killedCtx.Done():

0 commit comments

Comments
 (0)