]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Close xbootldr root_dir
authorJan Janssen <medhefgo@web.de>
Tue, 4 Jan 2022 09:06:37 +0000 (10:06 +0100)
committerJan Janssen <medhefgo@web.de>
Thu, 6 Jan 2022 13:16:34 +0000 (14:16 +0100)
src/boot/efi/boot.c

index 76d6d3ae7c616efde4f624285d7fb254ed36a2d6..969f3492859f5caeefc547963b61e472017e8885 100644 (file)
@@ -2151,8 +2151,8 @@ static void config_load_xbootldr(
                 Config *config,
                 EFI_HANDLE *device) {
 
+        _cleanup_(file_handle_closep) EFI_FILE *root_dir = NULL;
         EFI_HANDLE new_device;
-        EFI_FILE *root_dir;
         EFI_STATUS err;
 
         assert(config);