]> git.baikalelectronics.ru Git - uboot.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)
commit4bd2ac2b0b9f144ee5ee6748f91b2ea0aa66d830
tree5e9fca8181aee557687cf422c15e9e1cb30098f9
parent76369da690112f85bb2b261c7e3f3912a6e847de
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