From: Anthony Minessale Date: Sat, 6 Apr 2013 21:31:38 +0000 (-0500) Subject: FS-5265 X-Git-Tag: v1.5.1~277 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e251568cc2e6e7cbe0f570756bec85de2cf9dcf;p=thirdparty%2Ffreeswitch.git FS-5265 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index d3293e7b74..3f8287b843 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -2101,13 +2101,13 @@ static void _send_presence_notify(sofia_profile_t *profile, if ((cparams = strstr(o_contact, ";_;"))) { cparams += 3; } - + path = sofia_glue_get_path_from_contact((char *) o_contact); - - tmp = (char *)o_contact; + + tmp = (char *)o_contact; o_contact_dup = sofia_glue_get_url_from_contact(tmp, 1); - + if ((tp = switch_stristr("transport=", o_contact_dup))) { tp += 10; } @@ -2279,8 +2279,7 @@ static void _send_presence_notify(sofia_profile_t *profile, switch_safe_free(o_contact_dup); switch_safe_free(send_contact); switch_safe_free(our_contact_dup); - - + switch_safe_free(path); }