From 33871a10a895d923c396e2d2d05ea27f792aa502 Mon Sep 17 00:00:00 2001 From: Vladimir Testov Date: Tue, 26 Mar 2013 08:26:01 +0100 Subject: [PATCH] * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix memory leak. --- ChangeLog | 5 +++++ grub-core/gfxmenu/font.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 615c9a1a3..399b72f32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-03-26 Vladimir Testov + + * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix + memory leak. + 2013-03-25 Vladimir Serbinenko * grub-core/disk/ahci.c: Give more time for AHCI request. diff --git a/grub-core/gfxmenu/font.c b/grub-core/gfxmenu/font.c index 717483786..4a8e1f11e 100644 --- a/grub-core/gfxmenu/font.c +++ b/grub-core/gfxmenu/font.c @@ -104,6 +104,7 @@ grub_font_get_string_width (grub_font_t font, const char *str) grub_free (glyph.combining); } + grub_free (logical); return width; }