font: Add missing free.
Found by: Coverity Scan.
This commit is contained in:
parent
d1130afa5f
commit
dd430afbf8
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue