Commit 764065e9 authored by Youness Alaoui's avatar Youness Alaoui
Browse files

store the udp_turn relay socket into component->sockets so it gets freed at the end too

parent 6bfe8985
......@@ -571,6 +571,11 @@ discovery_add_relay_candidate (
result = priv_add_local_candidate_pruned (component, candidate);
if (result) {
GSList *modified_list = g_slist_append (component->sockets, relay_socket);
if (modified_list) {
/* success: store a pointer to the sockaddr */
component->sockets = modified_list;
agent_signal_new_candidate (agent, candidate);
} else {
/* error: memory allocation, or duplicate candidate */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment