mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Fix memory leak with proxy config routes.
This commit is contained in:
parent
01394ff75c
commit
0cf7325c4b
1 changed files with 4 additions and 1 deletions
|
|
@ -1228,7 +1228,10 @@ LinphoneProxyConfig *linphone_proxy_config_new_from_config_file(LinphoneCore* lc
|
|||
|
||||
CONFIGURE_STRING_VALUE(cfg,config,key,identity,"reg_identity")
|
||||
CONFIGURE_STRING_VALUE(cfg,config,key,server_addr,"reg_proxy")
|
||||
linphone_proxy_config_set_routes(cfg, linphone_config_get_string_list(config, key, "reg_route", NULL));
|
||||
bctbx_list_t *routes = linphone_config_get_string_list(config, key, "reg_route", NULL);
|
||||
linphone_proxy_config_set_routes(cfg, routes);
|
||||
if (routes)
|
||||
bctbx_list_free_with_data(routes, (bctbx_list_free_func)bctbx_free);
|
||||
|
||||
CONFIGURE_STRING_VALUE(cfg,config,key,realm,"realm")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue