Skip to content

Commit

Permalink
syslinux_parse: fix memory leak.
Browse files Browse the repository at this point in the history
Found by: Coverity scan.
  • Loading branch information
arvidjaar committed Jan 28, 2015
1 parent 1a4e478 commit 2efab86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grub-core/lib/syslinux_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,8 @@ write_entry (struct output_buffer *outbuf,

print_string ("\n");
}
if (ptr && *ptr)
grub_free (cmdline);
}
break;
case KERNEL_CHAINLOADER:
Expand Down

0 comments on commit 2efab86

Please sign in to comment.