]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Fix memory leak
authorJan Janssen <medhefgo@web.de>
Mon, 14 Nov 2022 13:18:26 +0000 (14:18 +0100)
committerJan Janssen <medhefgo@web.de>
Sat, 19 Nov 2022 15:36:02 +0000 (16:36 +0100)
src/boot/efi/boot.c

index 76023b14cadf4cb9df58eb38750ed72c57d07291..76c756c5cfdf3ad6d58e1d57d60f2b8ff2ca1f9e 100644 (file)
@@ -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;