efi/chainloader: fix use after free
Found by: Coverity scan. CID: 96714
This commit is contained in:
parent
0fb886cde9
commit
c069460259
1 changed files with 1 additions and 0 deletions
|
@ -351,6 +351,7 @@ grub_cmd_chainloader (grub_command_t cmd __attribute__ ((unused)),
|
|||
loaded_image->device_handle = dev_handle;
|
||||
|
||||
grub_file_close (file);
|
||||
file = NULL;
|
||||
|
||||
if (argc > 1)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue