Skip to content

Conversation

silviucpp
Copy link
Contributor

This patch 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

@danbev danbev merged commit 85d1d3d into ggml-org:master Oct 10, 2025
66 checks passed
@danbev
Copy link
Member

danbev commented Oct 10, 2025

@silviucpp Thank you!

ggerganov added a commit that referenced this pull request Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants