[Sound-open-firmware] [PATCH 2/3] rimage: free ELF program and section allocations

Liam Girdwood liam.r.girdwood at linux.intel.com
Thu Jun 15 15:36:39 CEST 2017


Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
 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;
 }
-- 
1.9.1



More information about the Sound-open-firmware mailing list