Commit 92f81c8d authored by Ghislain MARY's avatar Ghislain MARY

Use right functions to free and duplicate strings.

parent 941883df
......@@ -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{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment