Skip to content

Commit

Permalink
Close http.Body when requesting a new session (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastjan authored Jan 9, 2023
1 parent b29e5a6 commit fa0bfa8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apiserver/billing/odoostorage/odoo/odoo8/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func (c Client) login(ctx context.Context) (*Session, error) {
if err != nil {
return nil, err
}
defer resp.Body.Close()

return c.decodeSession(resp)
}
Expand Down

0 comments on commit fa0bfa8

Please sign in to comment.