mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 16:49:23 +00:00
efiemu: fix memory leak
Found by: Coverity scan. CID: 156610
This commit is contained in:
1 parent
e9d71db53a
commit
dbb0f9fa4f
1 file changed
+3
@@ -154,7 +154,10 @@ grub_efiemu_init_segments (grub_efiemu_segment_t *segs, const Elf_Ehdr *e)
|
||||
s->sh_flags & SHF_EXECINSTR ? GRUB_EFI_RUNTIME_SERVICES_CODE
|
||||
: GRUB_EFI_RUNTIME_SERVICES_DATA);
|
||||
if (seg->handle < 0)
|
||||
{
|
||||
grub_free (seg);
|
||||
return grub_errno;
|
||||
}
|
||||
seg->off = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user