grub-install: Fix memory leak
Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
4aeba29569
commit
f7d95b92f3
1 changed files with 1 additions and 0 deletions
|
@ -1472,6 +1472,7 @@ main (int argc, char *argv[])
|
|||
{
|
||||
grub_util_fprint_full_disk_name (load_cfg_f, g, dev);
|
||||
fprintf (load_cfg_f, " ");
|
||||
free (g);
|
||||
}
|
||||
if (dev != grub_dev)
|
||||
grub_device_close (dev);
|
||||
|
|
Loading…
Reference in a new issue