From 2fa2ec8c444114d4f408c2c74f6f8ea5229b0520 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Mon, 23 Oct 2017 15:01:53 -0400 Subject: [PATCH] fallback: find_boot_options(): don't leak a file handle. If we open it, we have to close it. Signed-off-by: Peter Jones --- fallback.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fallback.c b/fallback.c index 5dee574..4cbbf1c 100644 --- a/fallback.c +++ b/fallback.c @@ -911,6 +911,7 @@ find_boot_options(EFI_HANDLE device) } efi_status = find_boot_csv(fh3, fi->FileName); + uefi_call_wrapper(fh3->Close, 1, fh3); FreePool(buffer); buffer = NULL; if (efi_status == EFI_OUT_OF_RESOURCES)