font: Add missing free.

Found by: Coverity Scan.
This commit is contained in:
Vladimir Serbinenko 2015-01-24 21:55:18 +01:00
parent d1130afa5f
commit dd430afbf8

View file

@ -777,6 +777,7 @@ grub_font_get_glyph_internal (grub_font_t font, grub_uint32_t code)
if (grub_file_read (font->file, glyph->bitmap, len) != len)
{
remove_font (font);
grub_free (glyph);
return 0;
}
}