From: Jan Janssen Date: Tue, 4 Jan 2022 09:06:37 +0000 (+0100) Subject: boot: Close xbootldr root_dir X-Git-Tag: v251-rc1~568^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd4ddc82e61da959b5316f8761436d5c042a434f;p=thirdparty%2Fsystemd.git boot: Close xbootldr root_dir --- diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 76d6d3ae7c6..969f3492859 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -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);