From 1c5268251a5f0f49a1c9c1f0057fb86bcef2e7ea Mon Sep 17 00:00:00 2001 From: Prashant Vaibhav Date: Thu, 26 Mar 2026 18:46:02 +0530 Subject: [PATCH] fix: free resampled frames in SND_batchSamples_fixed_rate function The bug sneaked in as part of PR #573 which did have static buffers, but was reverted. Only this line seems to have sneaked in. Current main branch does not have static buffers in the resample_audio() function. Check issue #696 for details. --- workspace/all/common/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace/all/common/api.c b/workspace/all/common/api.c index f5bff9ada..af9fef268 100644 --- a/workspace/all/common/api.c +++ b/workspace/all/common/api.c @@ -2760,7 +2760,7 @@ size_t SND_batchSamples_fixed_rate(const SND_Frame *frames, size_t frame_count) pthread_mutex_unlock(&audio_mutex); total_consumed_frames += written_frames; - // No need to free - using static buffers + free(resampled.frames); } return total_consumed_frames;