]> 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)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Mon, 30 Sep 2024 16:23:45 +0000 (16:23 +0000)
commitc0d3fbb5ae0088ff25cee71f5f07462eb0e26905
treeb7a3b0693227e42832581d65f0c65208ebee0c65
parentbefe46162b5264a2fd2948dfbc17b150ae4170a5
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