fix memory leaks in linphonec, due to api change with linphone_core_add_auth_info().

This commit is contained in:
Simon Morlat 2010-02-12 12:01:48 +01:00
parent 7721c8c680
commit f6768244cd
2 changed files with 3 additions and 0 deletions

View file

@ -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);
}

View file

@ -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
/*