Skip to content

Commit 4e94efe

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 39c48e1 commit 4e94efe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/audio/src/src_common.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,10 @@ __cold int src_free(struct processing_module *mod)
689689

690690
comp_info(mod->dev, "entry");
691691
mod_free(mod, cd->delay_lines);
692+
#if CONFIG_FAST_GET
693+
mod_fast_put(mod, a->stage1->coefs);
694+
mod_fast_put(mod, a->stage2->coefs);
695+
#endif
692696
mod_free(mod, cd);
693697

694698
return 0;

0 commit comments

Comments
 (0)