From: Anthony Minessale Date: Fri, 4 Dec 2015 16:33:34 +0000 (-0600) Subject: FS-8612 #resolve [rare ivr originated calls crash due to read codec leak] X-Git-Tag: v1.6.6~1^2~77^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad696ccabfe6973689f91a13f2da107610868eaa;p=thirdparty%2Ffreeswitch.git FS-8612 #resolve [rare ivr originated calls crash due to read codec leak] --- 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]); }