提交 154f8f9f authored 作者: Anthony Minessale's avatar Anthony Minessale

fix logic err in user channel

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7735 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 67a1a6f4
......@@ -1337,7 +1337,7 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
static switch_call_cause_t cause = SWITCH_CAUSE_UNALLOCATED;
unsigned int timelimit = 60;
switch_channel_t *new_channel = NULL;
switch_event_t *params;
switch_event_t *params = NULL;
if (switch_strlen_zero(outbound_profile->destination_number)) {
goto done;
}
......@@ -1452,7 +1452,9 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
switch_xml_free(xml);
}
if (params) {
switch_event_destroy(&params);
}
switch_safe_free(user);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论