summaryrefslogtreecommitdiffstats
path: root/common/bootm.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/bootm.c')
-rw-r--r--common/bootm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/bootm.c b/common/bootm.c
index 052cffa462..7d00f8e012 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -288,6 +288,7 @@ static int bootm_open_oftree_uimage(struct image_data *data, size_t *size,
if (ft != filetype_oftree) {
printf("%s is not an oftree but %s\n",
data->oftree_file, file_type_to_string(ft));
+ free(*fdt);
return -EINVAL;
}