bootstd: rauc: Fix potential memory leak
authorMartin Schwan <m.schwan@phytec.de>
Mon, 14 Jul 2025 13:30:08 +0000 (15:30 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 22 Jul 2025 19:53:17 +0000 (13:53 -0600)
commita7d1214d2c9a38af3a9a1271dd8388068cba904c
treed72a0bcdd06fc181d28c62fb4d8a8ad8530eae0c
parent6bb0679377abb01a82db1ce69b5bf1d40aa02ace
bootstd: rauc: Fix potential memory leak

Fix a potential memory leak, by checking the return value of realloc
first, before assigning it to the private list of slots.

Signed-off-by: Martin Schwan <m.schwan@phytec.de>
boot/bootmeth_rauc.c