Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

Commit 5216e74

Browse files
authored
fix: close resp body (#3364)
### Pull Request Checklist <!-- Please read https://matrix-org.github.io/dendrite/development/contributing before submitting your pull request --> * [ ] I have added Go unit tests or [Complement integration tests](https://github.com/matrix-org/complement) for this PR _or_ I have justified why this PR doesn't need tests * [ ] Pull request includes a [sign off below using a legally identifiable name](https://matrix-org.github.io/dendrite/development/contributing#sign-off) _or_ I have already signed off privately Signed-off-by: `Your Name <[email protected]>` Signed-off-by: guoguangwu <[email protected]>
1 parent 4d116ff commit 5216e74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clientapi/threepid/threepid.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ func CreateSession(
8383
if err != nil {
8484
return "", err
8585
}
86+
defer resp.Body.Close()
8687

8788
// Error if the status isn't OK
8889
if resp.StatusCode != http.StatusOK {

0 commit comments

Comments
 (0)