Skip to content

Commit 59db2cc

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 59db2cc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/audio/src/src_common.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,14 @@ __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+
mod_fast_put(mod, a->stage1->coefs);
696+
mod_fast_put(mod, a->stage2->coefs);
697+
#endif
698+
691699
mod_free(mod, cd->delay_lines);
692700
mod_free(mod, cd);
693701

0 commit comments

Comments
 (0)