ext_man: Fix memory leak after manifest build

sec_buffer allocated inside elf_read_section()
was not being freed before and is freed now.

Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
This commit is contained in:
Karol Trzcinski 2021-04-26 12:19:54 +02:00 committed by Liam Girdwood
parent dbb49e03b9
commit 6c44aefb1f
1 changed files with 1 additions and 0 deletions

View File

@ -130,6 +130,7 @@ static int ext_man_build(const struct module *module,
*dst_buff = (struct ext_man_header *)buffer;
out:
free(sec_buffer);
return ret;
}