aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeswitch/FS-8612-calls-crash-due-to-read-codec-leak.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/freeswitch/FS-8612-calls-crash-due-to-read-codec-leak.patch')
-rw-r--r--main/freeswitch/FS-8612-calls-crash-due-to-read-codec-leak.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/freeswitch/FS-8612-calls-crash-due-to-read-codec-leak.patch b/main/freeswitch/FS-8612-calls-crash-due-to-read-codec-leak.patch
new file mode 100644
index 0000000000..56abe1ce10
--- /dev/null
+++ b/main/freeswitch/FS-8612-calls-crash-due-to-read-codec-leak.patch
@@ -0,0 +1,12 @@
+diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c
+index c65b80b..6b03c17 100644
+--- a/src/switch_ivr_originate.c
++++ b/src/switch_ivr_originate.c
+@@ -1863,6 +1863,7 @@ static void *SWITCH_THREAD_FUNC early_thread_run(switch_thread_t *thread, void *
+ if (!session) continue;
+
+ if (switch_core_codec_ready((&read_codecs[i]))) {
++ switch_core_session_set_read_codec(session, NULL);
+ switch_core_codec_destroy(&read_codecs[i]);
+ }
+