syslinux_parse: fix memory leak.

Found by: Coverity scan.
This commit is contained in:
Andrei Borzenkov 2015-01-28 20:09:25 +03:00
parent 1a4e47879c
commit 2efab86d5a

View file

@ -922,6 +922,8 @@ write_entry (struct output_buffer *outbuf,
print_string ("\n"); print_string ("\n");
} }
if (ptr && *ptr)
grub_free (cmdline);
} }
break; break;
case KERNEL_CHAINLOADER: case KERNEL_CHAINLOADER: