Commit 2a885640 authored by Eric Snowberg's avatar Eric Snowberg Committed by Daniel Kiper

grub-install: Fix memory leak

Signed-off-by: default avatarEric Snowberg <>
Reviewed-by: default avatarDaniel Kiper <>
parent 3d8df86d
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment