From ad696ccabfe6973689f91a13f2da107610868eaa Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 4 Dec 2015 10:33:34 -0600 Subject: [PATCH] FS-8612 #resolve [rare ivr originated calls crash due to read codec leak] --- src/switch_ivr_originate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index c65b80b7d4..6b03c1739d 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]); }