Skip to content

Commit ff6f3d1

Browse files
committed
Audio: MFCC: Fix memory leak in mfcc_free()
The mfcc_free_buffers() need to be called before the component data cd is freed. The pointers to buffers are members of cd. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent cf89794 commit ff6f3d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/audio/mfcc/mfcc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ static int mfcc_free(struct processing_module *mod)
9898

9999
comp_info(mod->dev, "entry");
100100
mod_data_blob_handler_free(mod, cd->model_handler);
101-
mod_free(mod, cd);
102101
mfcc_free_buffers(mod);
102+
mod_free(mod, cd);
103103
return 0;
104104
}
105105

0 commit comments

Comments
 (0)