]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
vad : free vad_segments in whisper_vad (#3463)
authorSilviu Caragea <redacted>
Fri, 10 Oct 2025 04:20:21 +0000 (04:20 +0000)
committerGitHub <redacted>
Fri, 10 Oct 2025 04:20:21 +0000 (06:20 +0200)
commit85d1d3d3dcd6e95944920ddb7ef30a016f6c5b22
treeb550df716d26443333a1c9957df8c1b379db0f28
parent98930fded1c06e601a38903607af262f04893880
vad : free vad_segments in whisper_vad (#3463)

This commit fixes multiple issues:

* memory leak because vad_segments is never released
* avoid segmentation fault when whisper_vad_segments_from_samples returns nullptr.
* avoid potential segmentation fault when the app fails to allocate memory for filtered samples and the vad context is released but also get released withing state itself when whisper_free_state is called
src/whisper.cpp