diff options
-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); } } |