Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
Close unused response body when sending PUT
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaron committed Feb 14, 2018
1 parent 5e58c91 commit a8c06bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kubernetes/deployments_kubeclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ func (oc *openShiftAPIClient) putResource(url string, putBody map[string]interfa
if err != nil {
return errs.WithStack(err)
}
defer resp.Body.Close()

status := resp.StatusCode
if httpStatusFailed(status) {
Expand Down

0 comments on commit a8c06bf

Please sign in to comment.