fix logic err in user channel

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7735 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-02-25 19:45:07 +00:00
parent 67a1a6f4c5
commit 154f8f9f8c
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}
switch_event_destroy(&params);
if (params) {
switch_event_destroy(&params);
}
switch_safe_free(user);