oftree must be freed when the tree is successfully unflattened.

Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de>
---
 arch/arm/lib/bootm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index 7bb9b43..2439c36 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -223,6 +223,7 @@ static int do_bootz_linux_fdt(int fd, struct image_data 
*data)
                        ret = -EINVAL;
                        goto err_free;
                }
+               free(oftree);
        } else {
                data->oftree = oftree;
        }
-- 
2.7.0.rc3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to