efi: app: Print the final message before freeing memory
Printing may make use of tables which could go away when freed, so do the free as the last thing before exiting the app. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -231,8 +231,8 @@ static void efi_exit(void)
|
||||
{
|
||||
struct efi_priv *priv = efi_get_priv();
|
||||
|
||||
free_memory(priv);
|
||||
printf("U-Boot EFI exiting\n");
|
||||
free_memory(priv);
|
||||
priv->boot->exit(priv->parent_image, EFI_SUCCESS, 0, NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user