]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
examples : fix memory leak in read_audio_data (#3810)
authorpetterreinholdtsen <redacted>
Mon, 18 May 2026 10:16:39 +0000 (12:16 +0200)
committerGitHub <redacted>
Mon, 18 May 2026 10:16:39 +0000 (12:16 +0200)
commit47b9eb37a33c5031a1b667ace64477330b9f36c1
treec71c966db59acc6738c5bb351a427d1b52b9e257
parent6227a0ef739a78312d96e6f8f85e7b6d63683445
examples : fix memory leak in read_audio_data (#3810)

This commit addresses a memory leak in the `read_audio_data` function
where it is currently possible that a call to `ma_decoder_init_file`
succeeds and the function returns early without calling
`ma_decoder_uninit`. A similar situation can occur with
`ma_decoder_init_memory`.

Refs: https://bugs.debian.org/1124796

Co-authored-by: Daniel Bevenius <redacted>
examples/common-whisper.cpp