[efi] Fix use of uninitialised variable

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/224/head
Michael Brown 2021-01-26 11:30:50 +00:00
parent a3f1e8fb67
commit ade4d2b4fe
1 changed files with 3 additions and 0 deletions

View File

@ -194,6 +194,9 @@ static int efi_load_autoexec ( EFI_HANDLE device ) {
DBGC ( device, "EFI %s found %ls\n",
efi_handle_name ( device ), name );
/* Success */
rc = 0;
err_read:
if ( data )
bs->FreePool ( data );