From: Anthony Minessale Date: Thu, 30 Oct 2008 16:40:54 +0000 (+0000) Subject: whatcha talking bout X-Git-Tag: v1.0.2~666 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d07bfb56f6aa1c4bb5094bc8e430947060c62b34;p=thirdparty%2Ffreeswitch.git whatcha talking bout git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10204 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 819b914dd0..c17af3513f 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -1215,7 +1215,7 @@ static int sofia_presence_mwi_callback2(void *pArg, int argc, char **argv, char } } switch_url_decode(route); - route_uri = strdup(route); + route_uri = route; if ((p = strchr(route_uri, ','))) { while (*(p-1) == ' ') { p--; @@ -1240,7 +1240,6 @@ static int sofia_presence_mwi_callback2(void *pArg, int argc, char **argv, char switch_safe_free(contact); switch_safe_free(id); switch_safe_free(route); - switch_safe_free(route_uri); if (ext_profile) { sofia_glue_release_profile(ext_profile); }