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
3d8df86d82
commit
2a88564017
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);
|
grub_util_fprint_full_disk_name (load_cfg_f, g, dev);
|
||||||
fprintf (load_cfg_f, " ");
|
fprintf (load_cfg_f, " ");
|
||||||
|
free (g);
|
||||||
}
|
}
|
||||||
if (dev != grub_dev)
|
if (dev != grub_dev)
|
||||||
grub_device_close (dev);
|
grub_device_close (dev);
|
||||||
|
|
Loading…
Reference in a new issue