X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FLibrary%2FUefiBootManagerLib%2FBmMisc.c;h=6b8fb4d92461c4419937d8f1b78a50abf32c5696;hp=fc8775dfa419c774b4c57dca1eef715e32134be6;hb=d43056888790f987169c54a5c2895758b85dff72;hpb=cfb29d2bda57baa344bded40cf12af81b13e8a40 diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c b/MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c index fc8775dfa4..6b8fb4d924 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c @@ -439,8 +439,6 @@ EfiBootManagerDispatchDeferredImages ( UINTN ImageSize; BOOLEAN BootOption; EFI_HANDLE ImageHandle; - UINTN ExitDataSize; - CHAR16 *ExitData; UINTN ImageCount; UINTN LoadCount; @@ -502,10 +500,7 @@ EfiBootManagerDispatchDeferredImages ( // a 5 Minute period // gBS->SetWatchdogTimer (5 * 60, 0x0000, 0x00, NULL); - Status = gBS->StartImage (ImageHandle, &ExitDataSize, &ExitData); - if (ExitData != NULL) { - FreePool (ExitData); - } + gBS->StartImage (ImageHandle, NULL, NULL); // // Clear the Watchdog Timer after the image returns.