From 82ae74d7bdeaad52f06fb79c52b80ecc32f556f4 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sat, 4 May 2013 13:11:57 +0200 Subject: [PATCH] * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak. --- ChangeLog | 4 ++++ grub-core/font/font.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8113b6d5f..a721215c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-05-04 Vladimir Serbinenko + + * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak. + 2013-05-03 Andrey Borzenkov Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h diff --git a/grub-core/font/font.c b/grub-core/font/font.c index fbbb988a5..4758f6c0a 100644 --- a/grub-core/font/font.c +++ b/grub-core/font/font.c @@ -1544,6 +1544,8 @@ grub_font_construct_glyph (grub_font_t hinted_font, blit_comb (glyph_id, glyph, NULL, main_glyph, combining_glyphs, NULL); + grub_free (combining_glyphs); + return glyph; }