diff --git a/common/bootm.c b/common/bootm.c index 052cffa..7d00f8e 100644 --- a/common/bootm.c +++ b/common/bootm.c @@ -288,6 +288,7 @@ 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; }