mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
util/grub-mkfont: Fix resource leaks
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
8812755d97
commit
78baa77c01
1 file changed
+5
@@ -699,6 +699,7 @@ add_font (struct grub_font_info *font_info, FT_Face face, int nocut)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
free (gsub);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (font_info->num_range)
|
if (font_info->num_range)
|
||||||
@@ -1322,11 +1323,15 @@ main (int argc, char *argv[])
|
|||||||
if (font_verbosity > 1)
|
if (font_verbosity > 1)
|
||||||
print_glyphs (&arguments.font_info);
|
print_glyphs (&arguments.font_info);
|
||||||
|
|
||||||
|
free (arguments.font_info.glyphs_sorted);
|
||||||
|
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
for (i = 0; i < arguments.nfiles; i++)
|
for (i = 0; i < arguments.nfiles; i++)
|
||||||
free (arguments.files[i]);
|
free (arguments.files[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free (arguments.files);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user