mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-14 14:42:39 +00:00
efi/chainloader: fix use after free
Found by: Coverity scan. CID: 96714
This commit is contained in:
parent
0fb886cde9
commit
c069460259
@ -351,6 +351,7 @@ grub_cmd_chainloader (grub_command_t cmd __attribute__ ((unused)),
|
|||||||
loaded_image->device_handle = dev_handle;
|
loaded_image->device_handle = dev_handle;
|
||||||
|
|
||||||
grub_file_close (file);
|
grub_file_close (file);
|
||||||
|
file = NULL;
|
||||||
|
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user