]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootstd: Fix a memory leak in the efi manager bootflow
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 7 Dec 2023 12:36:36 +0000 (14:36 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 13 Dec 2023 23:39:06 +0000 (18:39 -0500)
commiteb09c33084ca2106fa669bee402abea4e6e437dd
treebd8b60f779bc66fb951401a08d36c4a45140859a
parent09a17b0d01dd7c81f6fd96228581d7df47a1a7b1
bootstd: Fix a memory leak in the efi manager bootflow

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>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
boot/bootmeth_efi_mgr.c