]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
authorVladimir Testov <vladimir.testov@rosalab.ru>
Tue, 26 Mar 2013 07:26:01 +0000 (08:26 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 26 Mar 2013 07:26:01 +0000 (08:26 +0100)
memory leak.

ChangeLog
grub-core/gfxmenu/font.c

index 615c9a1a3ebbef4f6dca452c30c83c5579b62ce3..399b72f32c267ec07a2754a29e4b62474e838efd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-26  Vladimir Testov <vladimir.testov@rosalab.ru>
+
+       * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
+       memory leak.
+
 2013-03-25  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/disk/ahci.c: Give more time for AHCI request.
index 717483786008d10b89af2945c2a9aea467e667a3..4a8e1f11e385cd7a4139c3dcbdfbf18814bc4a9f 100644 (file)
@@ -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;
 }