Skip to content

Commit 76b764a

Browse files
committed
audio: src: free copied coefficients
Until now SRC was relying on the final module clean up to free copied with fast_get() coefficients. This however isn't clean. Fix it and release partitions explicitly. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 38a4b9e commit 76b764a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/audio/src/src_common.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,18 @@ __cold int src_free(struct processing_module *mod)
688688
assert_can_be_cold();
689689

690690
comp_info(mod->dev, "entry");
691+
692+
#if CONFIG_FAST_GET
693+
struct src_param *a = &cd->param;
694+
695+
comp_info(mod->dev, "free stages %p %p", a->stage1, a->stage2);
696+
697+
if (a->stage1)
698+
mod_fast_put(mod, a->stage1->coefs);
699+
if (a->stage2)
700+
mod_fast_put(mod, a->stage2->coefs);
701+
#endif
702+
691703
mod_free(mod, cd->delay_lines);
692704
mod_free(mod, cd);
693705

0 commit comments

Comments
 (0)