From b424e981ec7b8fd9311d03c139609f44ee7940fe Mon Sep 17 00:00:00 2001 From: Liam Girdwood Date: Thu, 15 Jun 2017 14:34:01 +0100 Subject: [PATCH] rimage: free ELF program and section allocations Signed-off-by: Liam Girdwood --- rimage/rimage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rimage/rimage.c b/rimage/rimage.c index 0695ce3..af57f5a 100644 --- a/rimage/rimage.c +++ b/rimage/rimage.c @@ -208,6 +208,9 @@ static int write_elf_data(struct image *image) goto out; } + free(image->prg); + free(image->section); + out: return ret; }