]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_agi.c: Prevent possible double free during `SPEECH RECOGNIZE`
authorjiangxc <jiangxc08@qq.com>
Wed, 17 Jul 2024 09:02:33 +0000 (17:02 +0800)
committerjiangxc <jiangxc08@qq.com>
Mon, 30 Sep 2024 16:23:38 +0000 (16:23 +0000)
commite1da2fec4242a1fd59cd4329a2d0021b3e9483ba
treec06a0ef1c5a8c5b396a7e9164657d545c79d4a87
parent9da3bdefefdf62a524c14e38198494c25ecec7ea
res_agi.c: Prevent possible double free during `SPEECH RECOGNIZE`

When using the speech recognition module, crashes can occur
sporadically due to a "double free or corruption (out)" error. Now, in
the section where the audio stream is being captured in a loop, each
time after releasing fr, it is set to NULL to prevent repeated
deallocation.

Fixes #772
res/res_agi.c