]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[Core] Fix leaking codec, timer and abuf in switch_ivr_play_file() in the case of...
authorAndrey Volk <andywolk@gmail.com>
Thu, 18 Feb 2021 16:02:03 +0000 (19:02 +0300)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Mar 2021 16:43:14 +0000 (19:43 +0300)
src/switch_ivr_play_say.c

index e21795095841e35185447219314a70a0d370dcdd..a8cb5fd4a1711e99346484f180576d728f1cabe8 100644 (file)
@@ -1309,8 +1309,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
                                                *arg++ = '\0';
                                        }
                                        if ((status = switch_ivr_phrase_macro(session, dup, arg, lang, args)) != SWITCH_STATUS_SUCCESS) {
-                                               arg_recursion_check_stop(args);
-                                               return status;
+                                               break;
                                        }
                                        continue;
                                } else {
@@ -1327,8 +1326,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
 
                                if (engine && text) {
                                        if ((status = switch_ivr_speak_text(session, engine, voice, (char *)text, args)) != SWITCH_STATUS_SUCCESS) {
-                                               arg_recursion_check_stop(args);
-                                               return status;
+                                               break;
                                        }
                                } else {
                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Invalid Args\n");