From: Mathieu Rene Date: Mon, 16 Mar 2009 18:49:58 +0000 (+0000) Subject: dont leak the xml structure if answer fails X-Git-Tag: v1.0.4~1512 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09e73f807d481a64c11561db2a039469e1b414dd;p=thirdparty%2Ffreeswitch.git dont leak the xml structure if answer fails git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12624 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index 9cf086b9eb..e4d26d1676 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -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) {