提交 d1a20a12 authored 作者: Michael Jerris's avatar Michael Jerris

little leak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10785 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 493c51c5
...@@ -441,10 +441,10 @@ static void actual_sofia_presence_event_handler(switch_event_t *event) ...@@ -441,10 +441,10 @@ static void actual_sofia_presence_event_handler(switch_event_t *event)
case SWITCH_EVENT_PRESENCE_PROBE: case SWITCH_EVENT_PRESENCE_PROBE:
if (proto) { if (proto) {
char *to = switch_event_get_header(event, "to"); char *to = switch_event_get_header(event, "to");
char *probe_user, *probe_euser, *probe_host, *p; char *probe_user = NULL, *probe_euser, *probe_host, *p;
if (!to || !(probe_user = strdup(to))) { if (!to || !(probe_user = strdup(to))) {
return; goto done;
} }
if ((probe_host = strchr(probe_user, '@'))) { if ((probe_host = strchr(probe_user, '@'))) {
...@@ -488,10 +488,9 @@ static void actual_sofia_presence_event_handler(switch_event_t *event) ...@@ -488,10 +488,9 @@ static void actual_sofia_presence_event_handler(switch_event_t *event)
switch_safe_free(sql); switch_safe_free(sql);
} }
switch_safe_free(user);
switch_safe_free(probe_user); switch_safe_free(probe_user);
} }
return; goto done;
default: default:
break; break;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论