summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-09 13:02:45 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-09 13:02:45 +0200
commitf7c27b080183af02d86b039c65e6b1fc83fa4546 (patch)
tree1c5477cf1810908f04dbe0f1a0fb2bd550e116ba
parentfadf9c47c96f91faab3413022663abf710940125 (diff)
downloadweechat-f7c27b080183af02d86b039c65e6b1fc83fa4546.zip
relay: free all data in remote
-rw-r--r--src/plugins/relay/relay-remote.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/relay/relay-remote.c b/src/plugins/relay/relay-remote.c
index 34788e74b..ca63befb0 100644
--- a/src/plugins/relay/relay-remote.c
+++ b/src/plugins/relay/relay-remote.c
@@ -757,6 +757,14 @@ relay_remote_free (struct t_relay_remote *remote)
}
if (remote->address)
free (remote->address);
+ if (remote->websocket_key)
+ free (remote->websocket_key);
+ if (remote->hook_url_handshake)
+ weechat_unhook (remote->hook_url_handshake);
+ if (remote->hook_connect)
+ weechat_unhook (remote->hook_connect);
+ if (remote->hook_fd)
+ weechat_unhook (remote->hook_fd);
relay_websocket_deflate_free (remote->ws_deflate);
free (remote);