[PATCH 01/13] ARM: zImage: add missing free() in appended device tree code
Sascha Hauer
s.hauer at pengutronix.de
Fri Jan 15 07:07:06 PST 2016
oftree must be freed when the tree is successfully unflattened.
Signed-off-by: Sascha Hauer <s.hauer at 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.6.4
More information about the barebox
mailing list