]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: memory leak efi_add_memory_map_pg
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 30 Jul 2023 10:59:32 +0000 (12:59 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 3 Aug 2023 07:21:02 +0000 (09:21 +0200)
commitecae4bbf35fac3cde0c41c012a05c8e5b4ade90f
tree5e9fca8181aee557687cf422c15e9e1cb30098f9
parent257a498fbb146f866d729176a6fce5875323d4b9
efi_loader: memory leak efi_add_memory_map_pg

Don't leak newlist if we error out.

Fixes: 74c16acce30b ("efi_loader: Don't allocate from memory holes")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_memory.c