mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
if it happens.
This commit is contained in:
1 parent
5ff1d945ed
commit
d0b526b277
2 files changed
+11
-1
No files matched your search
@@ -1322,6 +1322,11 @@ grub_bsd_load (int argc, char *argv[])
|
||||
goto fail;
|
||||
|
||||
relocator = grub_relocator_new ();
|
||||
if (!relocator)
|
||||
{
|
||||
grub_file_close (file);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
elf = grub_elf_file (file);
|
||||
if (elf)
|
||||
@@ -1343,7 +1348,7 @@ grub_bsd_load (int argc, char *argv[])
|
||||
fail:
|
||||
|
||||
if (grub_errno != GRUB_ERR_NONE)
|
||||
grub_dl_unref (my_mod);
|
||||
grub_dl_unref (my_mod);
|
||||
|
||||
return grub_errno;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user