aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clientapi/threepid/threepid.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/clientapi/threepid/threepid.go b/clientapi/threepid/threepid.go
index d61052cc..5a57ef9c 100644
--- a/clientapi/threepid/threepid.go
+++ b/clientapi/threepid/threepid.go
@@ -83,6 +83,7 @@ func CreateSession(
if err != nil {
return "", err
}
+ defer resp.Body.Close()
// Error if the status isn't OK
if resp.StatusCode != http.StatusOK {