]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
dont leak the xml structure if answer fails
authorMathieu Rene <mrene@avgs.ca>
Mon, 16 Mar 2009 18:49:58 +0000 (18:49 +0000)
committerMathieu Rene <mrene@avgs.ca>
Mon, 16 Mar 2009 18:49:58 +0000 (18:49 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12624 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_play_say.c

index 9cf086b9eb7e0bc03e0462b67f02e42a5e2e56a9..e4d26d1676929fbad0d9926b4951b1bf4262c1e1 100644 (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) {