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:
Peter Jones 2017-10-23 15:01:53 -04:00 committed by Peter Jones
parent 802221cf62
commit 2fa2ec8c44

View File

@ -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)