Skip to content

Commit 8d0d704

Browse files
better0fdeadLeonidVas
authored andcommitted
install: close response if status code is not OK
Added close of response if status code is not OK.
1 parent 749f480 commit 8d0d704

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/install_ee/install_ee.go

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func GetTarantoolEE(cliOpts *config.CliOpts, bundleName, bundleSource string,
4949
if err != nil {
5050
return err
5151
} else if res.StatusCode != http.StatusOK {
52+
res.Body.Close()
5253
return fmt.Errorf("HTTP request error: %s", http.StatusText(res.StatusCode))
5354
}
5455

0 commit comments

Comments
 (0)