[Freeswitch-trunk] [commit] r12624 - freeswitch/trunk/src

FreeSWITCH SVN mrene at freeswitch.org
Mon Mar 16 11:49:58 PDT 2009


Author: mrene
Date: Mon Mar 16 13:49:58 2009
New Revision: 12624

Log:
dont leak the xml structure if answer fails

Modified:
   freeswitch/trunk/src/switch_ivr_play_say.c

Modified: freeswitch/trunk/src/switch_ivr_play_say.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_play_say.c	(original)
+++ freeswitch/trunk/src/switch_ivr_play_say.c	Mon Mar 16 13:49:58 2009
@@ -216,7 +216,8 @@
 	}
 
 	if (switch_channel_pre_answer(channel) != SWITCH_STATUS_SUCCESS) {
-		return SWITCH_STATUS_FALSE;
+		status = SWITCH_STATUS_FALSE;
+		goto done;
 	}
 
 	while (input && !done) {



More information about the Freeswitch-trunk mailing list