From: Jan Janssen Date: Mon, 14 Nov 2022 13:18:26 +0000 (+0100) Subject: boot: Fix memory leak X-Git-Tag: v253-rc1~487^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7b327f856b3782f28be561d612d66ff406c7789;p=thirdparty%2Fsystemd.git boot: Fix memory leak --- diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 76023b14cad..76c756c5cfd 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -2658,7 +2658,7 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) { EFI_LOADED_IMAGE_PROTOCOL *loaded_image; _cleanup_(file_closep) EFI_FILE *root_dir = NULL; _cleanup_(config_free) Config config = {}; - char16_t *loaded_image_path; + _cleanup_free_ char16_t *loaded_image_path = NULL; EFI_STATUS err; uint64_t init_usec; bool menu = false;