From acd28f39126289dd0cb76efc79def673c27c4d04 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Thu, 13 Jan 2022 14:29:46 +0100 Subject: [PATCH] boot: Don't try to free loaded_image EFI_LOADED_IMAGE is a protocol pointer and thus, we shouldn't try to free it. --- src/boot/efi/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index ce901e7cb6..c07f629939 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -2448,7 +2448,7 @@ static void config_load_all_entries( } EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) { - _cleanup_freepool_ EFI_LOADED_IMAGE *loaded_image = NULL; + EFI_LOADED_IMAGE *loaded_image; _cleanup_(file_closep) EFI_FILE *root_dir = NULL; _cleanup_(config_free) Config config = {}; CHAR16 *loaded_image_path;