projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85eb489
)
boot: Don't try to free loaded_image
author
Jan Janssen
<medhefgo@web.de>
Thu, 13 Jan 2022 13:29:46 +0000
(14:29 +0100)
committer
Jan Janssen
<medhefgo@web.de>
Thu, 13 Jan 2022 13:29:46 +0000
(14:29 +0100)
EFI_LOADED_IMAGE is a protocol pointer and thus, we shouldn't try
to free it.
src/boot/efi/boot.c
patch
|
blob
|
history
diff --git
a/src/boot/efi/boot.c
b/src/boot/efi/boot.c
index ce901e7cb68b95dc9ab7b77b42e582c1ffc32e48..c07f629939950e2b17ef873f5a9b5b4cf50ef44c 100644
(file)
--- 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;