From d07bfb56f6aa1c4bb5094bc8e430947060c62b34 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 30 Oct 2008 16:40:54 +0000 Subject: [PATCH] whatcha talking bout git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10204 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_presence.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); }