mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-14 10:15:48 +00:00
fallback: find_boot_options(): don't leak a file handle.
If we open it, we have to close it. Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
802221cf62
commit
2fa2ec8c44
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user