[lbry] rpcclient: fix resource leak
This commit is contained in:
parent
a4cc516896
commit
9ebe440325
1 changed files with 1 additions and 0 deletions
|
@ -1382,6 +1382,7 @@ func dial(config *ConnConfig) (*websocket.Conn, error) {
|
|||
// cases above apply.
|
||||
return nil, errors.New(resp.Status)
|
||||
}
|
||||
resp.Body.Close()
|
||||
return wsConn, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue