mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 06:09:39 +00:00
Use right functions to free and duplicate strings.
This commit is contained in:
parent
941883df07
commit
92f81c8d07
1 changed files with 2 additions and 2 deletions
|
|
@ -200,8 +200,8 @@ void lp_config_parse(LpConfig *lpconfig, FILE *file){
|
|||
if (item==NULL){
|
||||
lp_section_add_item(cur,lp_item_new(key,pos1));
|
||||
}else{
|
||||
ms_free(item->value);
|
||||
item->value=strdup(pos1);
|
||||
ortp_free(item->value);
|
||||
item->value=ortp_strdup(pos1);
|
||||
}
|
||||
/*ms_message("Found %s=%s",key,pos1);*/
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue