dont leak the xml structure if answer fails

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12624 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2009-03-16 18:49:58 +00:00
parent e211789531
commit 09e73f807d
1 changed files with 2 additions and 1 deletions

View File

@ -216,7 +216,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
}
if (switch_channel_pre_answer(channel) != SWITCH_STATUS_SUCCESS) {
return SWITCH_STATUS_FALSE;
status = SWITCH_STATUS_FALSE;
goto done;
}
while (input && !done) {