From e85bce547ec6415facf0e0a5d3eb41e8d74eb33d Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 20 Nov 2008 14:22:41 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10477 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index e84645c7a0..90a652d7de 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -1134,8 +1134,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi switch_mutex_lock(tech_pvt->sofia_mutex); if ((var = switch_channel_get_variable(tech_pvt->channel, "sip_refer_reply"))) { - msg->string_reply = strdup(var); - switch_set_flag(msg, SCSMF_FREE_STRING_REPLY); + msg->string_reply = switch_core_session_strdup(session, var); } else { msg->string_reply = "no reply"; }