mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 23:32:39 +00:00
Fix few memory errors
This commit is contained in:
1 parent
7c464a1ec5
commit
eaa1f9a64b
3 files changed
+13
-8
No files matched your search
+1
-1
@@ -63,10 +63,10 @@ grub_font_draw_string (const char *str, grub_font_t font,
|
||||
if (!glyph)
|
||||
return grub_errno;
|
||||
err = grub_font_draw_glyph (glyph, color, x, baseline_y);
|
||||
x += glyph->device_width;
|
||||
grub_free (glyph);
|
||||
if (err)
|
||||
return err;
|
||||
x += glyph->device_width;
|
||||
}
|
||||
|
||||
grub_free (visual);
|
||||
|
||||
Reference in new issue
Block a user