mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 22:58:13 +00:00
fix memory leaks in linphonec, due to api change with linphone_core_add_auth_info().
This commit is contained in:
parent
7721c8c680
commit
f6768244cd
2 changed files with 3 additions and 0 deletions
|
|
@ -1384,6 +1384,7 @@ static int lpc_cmd_register(LinphoneCore *lc, char *args){
|
|||
snprintf(realm,sizeof(realm)-1,"\"%s\"",from->url->host);
|
||||
info=linphone_auth_info_new(from->url->username,NULL,passwd,NULL,NULL);
|
||||
linphone_core_add_auth_info(lc,info);
|
||||
linphone_auth_info_destroy(info);
|
||||
}
|
||||
osip_from_free(from);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -827,6 +827,8 @@ linphonec_prompt_for_auth_final(LinphoneCore *lc)
|
|||
*/
|
||||
linphone_auth_info_set_passwd(pending_auth, input);
|
||||
linphone_core_add_auth_info(lc, pending_auth);
|
||||
linphone_auth_info_destroy(pending_auth);
|
||||
auth_stack.elem[auth_stack.nitems-1]=0;
|
||||
--(auth_stack.nitems);
|
||||
#ifdef HAVE_READLINE
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue