rimage: free ELF program and section allocations

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2017-06-15 14:34:01 +01:00
parent 321aa0504d
commit b424e981ec
1 changed files with 3 additions and 0 deletions

View File

@ -208,6 +208,9 @@ static int write_elf_data(struct image *image)
goto out;
}
free(image->prg);
free(image->section);
out:
return ret;
}