diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-09 13:13:32 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-09 13:13:32 +0200 |
commit | e8081fe4f7a333dd7e7edbd5937be89b2116a6d9 (patch) | |
tree | c0c301eeda7b3de29ca38ecd3f6a7a8d64279193 /src | |
parent | ed2becf8fe4c35eb6b2b4c02e5df5fd5b824f6be (diff) | |
download | weechat-e8081fe4f7a333dd7e7edbd5937be89b2116a6d9.zip |
relay/api: free frames after use
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/relay/api/remote/relay-remote-network.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/relay/api/remote/relay-remote-network.c b/src/plugins/relay/api/remote/relay-remote-network.c index a6b6fbf58..dab6b0bb2 100644 --- a/src/plugins/relay/api/remote/relay-remote-network.c +++ b/src/plugins/relay/api/remote/relay-remote-network.c @@ -505,6 +505,12 @@ relay_remote_network_recv_buffer (struct t_relay_remote *remote, return; } relay_remote_network_read_websocket_frames (remote, frames, num_frames); + for (i = 0; i < num_frames; i++) + { + if (frames[i].payload) + free (frames[i].payload); + } + free (frames); } } |