commands/syslinux: Add missing free.
Found by: Coverity scan.
This commit is contained in:
parent
4947f11b09
commit
fbae51dcea
1 changed files with 4 additions and 1 deletions
|
@ -119,7 +119,10 @@ syslinux_file (grub_extcmd_context_t ctxt, const char *filename)
|
||||||
{
|
{
|
||||||
menu = grub_zalloc (sizeof (*menu));
|
menu = grub_zalloc (sizeof (*menu));
|
||||||
if (! menu)
|
if (! menu)
|
||||||
return grub_errno;
|
{
|
||||||
|
grub_free (result);
|
||||||
|
return grub_errno;
|
||||||
|
}
|
||||||
|
|
||||||
grub_env_set_menu (menu);
|
grub_env_set_menu (menu);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue