summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib/bootm.c
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-22 08:15:14 +0100
commit777060edcbb5af7043a58e950a433dfd94704dfb (patch)
treecdcbe52811a1e0736d909e72597c25ea4f9bc938 /arch/arm/lib/bootm.c
parent62c9a8c000996a2c82078d0ea0fa8315c7b34e0b (diff)
downloadbarebox-777060edcbb5af7043a58e950a433dfd94704dfb.tar.gz
barebox-777060edcbb5af7043a58e950a433dfd94704dfb.tar.xz
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>
Diffstat (limited to 'arch/arm/lib/bootm.c')
-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 7bb9b43656..2439c36a45 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;
}