efi: app: Avoid freeing memory on exit

The private data is used to perform the exit, so freeing anything used
by the app may cause a hang or crash. The underlying EFI system should
be able to free any memory allocated by the app, so just skip the call
to free_memory()

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-20 12:15:35 -06:00
parent a7cc8de618
commit cd8d6ccaef

View File

@@ -245,7 +245,6 @@ static void efi_exit(void)
struct efi_priv *priv = efi_get_priv();
printf("U-Boot EFI exiting\n");
free_memory(priv);
priv->boot->exit(priv->parent_image, EFI_SUCCESS, 0, NULL);
}