commands/fileXX: Fix remaining memory leak.
Found by: Coverity Scan.
This commit is contained in:
parent
d0af2156c3
commit
fb66b512fa
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ grub_file_check_netbsdXX (grub_elf_t elf)
|
|||
char name[sizeof(".note.netbsd.ident")];
|
||||
grub_memset (name, 0, sizeof (name));
|
||||
if (grub_file_seek (elf->file, stroff + s->sh_name) == (grub_off_t) -1)
|
||||
return grub_errno;
|
||||
goto fail;
|
||||
|
||||
if (grub_file_read (elf->file, name, sizeof (name)) != (grub_ssize_t) sizeof (name))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue