[PATCH 4/4] bootstd: rauc: Free private data when booting
Martin Schwan
m.schwan at phytec.de
Wed Aug 13 13:54:08 CEST 2025
The private data struct can be freed when loading the boot script, as we
don't need the slot information anymore at this point.
Signed-off-by: Martin Schwan <m.schwan at phytec.de>
---
boot/bootmeth_rauc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/boot/bootmeth_rauc.c b/boot/bootmeth_rauc.c
index f781a7fc0b5153b952afc8da38b17d93e073485d..9c082dabd2b0bb37cbddf7eeec050d3a21be0523 100644
--- a/boot/bootmeth_rauc.c
+++ b/boot/bootmeth_rauc.c
@@ -409,6 +409,8 @@ static int distro_rauc_boot(struct udevice *dev, struct bootflow *bflow)
if (ret)
return log_msg_ret("boot", ret);
+ distro_rauc_priv_free(priv);
+
return 0;
}
--
2.50.1
More information about the U-Boot
mailing list