Skip to content

Commit d8fb810

Browse files
lyakhlgirdwood
authored andcommitted
audio: src: free memory explicitly
SRC is relying on the managed memory freeing but the common SOF approach now is to free all managed heap allocations explicitly. Add the missing mod_free() calls. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent e89c0e2 commit d8fb810

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/audio/src/src_common.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,9 +683,13 @@ int src_reset(struct processing_module *mod)
683683

684684
__cold int src_free(struct processing_module *mod)
685685
{
686+
struct comp_data *cd = module_get_private_data(mod);
687+
686688
assert_can_be_cold();
687689

688690
comp_info(mod->dev, "entry");
691+
mod_free(mod, cd->delay_lines);
692+
mod_free(mod, cd);
689693

690694
return 0;
691695
}

0 commit comments

Comments
 (0)