From 92f81c8d07f6c5a41c8d240a5c6b6a31a9b211ed Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 3 Feb 2014 17:47:50 +0100 Subject: [PATCH] Use right functions to free and duplicate strings. --- coreapi/lpconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coreapi/lpconfig.c b/coreapi/lpconfig.c index 60e944882..eaeaad71a 100644 --- a/coreapi/lpconfig.c +++ b/coreapi/lpconfig.c @@ -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{