From: Jan Janssen Date: Thu, 13 Jan 2022 13:29:46 +0000 (+0100) Subject: boot: Don't try to free loaded_image X-Git-Tag: v251-rc1~533^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acd28f39126289dd0cb76efc79def673c27c4d04;p=thirdparty%2Fsystemd.git boot: Don't try to free loaded_image EFI_LOADED_IMAGE is a protocol pointer and thus, we shouldn't try to free it. --- diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index ce901e7cb68..c07f6299399 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;