tunnel: fix some leaks

This commit is contained in:
Gautier Pelloux-Prayer 2016-04-21 10:18:43 +02:00
parent c2a77c9533
commit f13fb7a90c
2 changed files with 2 additions and 0 deletions

View file

@ -198,6 +198,7 @@ static void linphone_tunnel_refresh_config(LinphoneTunnel *tunnel) {
while(old_list != NULL) {
LinphoneTunnelConfig *tunnel_config = (LinphoneTunnelConfig *)old_list->data;
linphone_tunnel_add_server_intern(tunnel, tunnel_config);
linphone_tunnel_config_unref(tunnel_config);
old_list = old_list->next;
}
}

View file

@ -99,6 +99,7 @@ static void call_with_tunnel_base(LinphoneTunnelMode tunnel_mode, bool_t with_si
linphone_tunnel_add_server(tunnel, config);
linphone_tunnel_set_mode(tunnel, tunnel_mode);
linphone_tunnel_enable_sip(tunnel, with_sip);
linphone_tunnel_config_unref(config);
/*
* Enabling the tunnel with sip cause another REGISTER to be made.