Skip to content

Commit f041fbf

Browse files
arschlesAaron Schlesinger
authored andcommitted
fix(controller.go): close the response body
1 parent bc641ab commit f041fbf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/gitreceive/controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ func receive(conf *Config, builderKey, gitSha string) error {
128128
if err != nil {
129129
return err
130130
}
131+
defer resp.Body.Close()
131132
if resp.StatusCode != 201 {
132133
return newUnexpectedControllerStatusCode(urlStr, 201, resp.StatusCode)
133134
}

0 commit comments

Comments
 (0)