
13 Dec
2023
13 Dec
'23
9:38 p.m.
From: Ilias Apalodimas ilias.apalodimas@linaro.org Date: Thu, 7 Dec 2023 14:36:36 +0200
efi_get_var() allocates memory which has to be freed after the value of the variable is consumed. Free the memory properly
Fixes: f2bfa0cb1794 ("bootstd: Make efi_mgr bootmeth work for non-sandbox setups") Signed-off-by: Ilias Apalodimas ilias.apalodimas@linaro.org
Apologies for the quick resend but the previous patches wasn't compiling due to the missing #include <malloc.h>
Changes since v1
- Add #include <malloc.h> since it's needed for free()
boot/bootmeth_efi_mgr.c | 2 ++ 1 file changed, 2 insertions(+)
Oops!
Reviewed-by: Mark Kettenis kettenis@openbsd.org
Applied to u-boot-dm/next, thanks!