commands/syslinux: Add missing free.

Found by: Coverity scan.
This commit is contained in:
Vladimir Serbinenko 2015-01-24 21:23:25 +01:00
parent 4947f11b09
commit fbae51dcea
1 changed files with 4 additions and 1 deletions

View File

@ -119,7 +119,10 @@ syslinux_file (grub_extcmd_context_t ctxt, const char *filename)
{
menu = grub_zalloc (sizeof (*menu));
if (! menu)
return grub_errno;
{
grub_free (result);
return grub_errno;
}
grub_env_set_menu (menu);
}