From 9ebe440325e45ea6b92f86773ac54cf8c01d6b45 Mon Sep 17 00:00:00 2001 From: Roy Lee Date: Mon, 13 Sep 2021 16:56:17 -0700 Subject: [PATCH] [lbry] rpcclient: fix resource leak --- rpcclient/infrastructure.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpcclient/infrastructure.go b/rpcclient/infrastructure.go index 592c0dde..aedf18b7 100644 --- a/rpcclient/infrastructure.go +++ b/rpcclient/infrastructure.go @@ -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 }