bootstd: rauc: Free private data when booting
authorMartin Schwan <m.schwan@phytec.de>
Wed, 13 Aug 2025 11:54:08 +0000 (13:54 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 21 Aug 2025 21:05:04 +0000 (15:05 -0600)
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@phytec.de>
Tested-by: Wadim Egorov <w.egorov@phytec.de>
boot/bootmeth_rauc.c

index f781a7f..9c082da 100644 (file)
@@ -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;
 }