summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-01-15 09:18:54 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-01-15 14:03:40 +0100
commit1857cc1e711d0d09a4cebd9b034b4a78379b6d46 (patch)
tree9f7d7f552602d94b2a517a855c3eef6c7a6aa321
parent53a573c0140118ba4e62f45bd17fae5c378805f7 (diff)
downloadbarebox-1857cc1e711d0d09a4cebd9b034b4a78379b6d46.tar.gz
ARM: zImage: add missing free() in appended device tree code
oftree must be freed when the tree is successfully unflattened. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/lib/bootm.c1
1 files changed, 1 insertions, 0 deletions
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;
}