Skip to content

Commit f374bba

Browse files
committed
closing the resp body
1 parent 16ceff3 commit f374bba

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

objectbox/objectbox_check.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func (c *Client) Check(image io.Reader) (CheckResponse, error) {
4444
if err != nil {
4545
return CheckResponse{}, err
4646
}
47+
defer resp.Body.Close()
4748
return c.parseCheckResponse(resp.Body)
4849
}
4950

tagbox/tagbox_check.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func (c *Client) Check(image io.Reader) (CheckResponse, error) {
4444
if err != nil {
4545
return CheckResponse{}, err
4646
}
47+
defer resp.Body.Close()
4748
return c.parseCheckResponse(resp.Body)
4849
}
4950

0 commit comments

Comments
 (0)