]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8612 #resolve [rare ivr originated calls crash due to read codec leak]
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 4 Dec 2015 16:33:34 +0000 (10:33 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 4 Dec 2015 16:33:41 +0000 (10:33 -0600)
src/switch_ivr_originate.c

index c65b80b7d4667723ccda99883ec46b633124e7be..6b03c1739d6f3eed9e8745bfbd37e377c0cb22fd 100644 (file)
@@ -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]);
                }