From 94cacac59479566f9718e6ebfa44f5477c889002 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sun, 15 Nov 2015 04:45:42 +0100 Subject: [PATCH] * src/bdf/bdflib.c (bdf_load_font): Fix small memory leak (#46439). --- ChangeLog | 4 ++++ src/bdf/bdflib.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4442f3982..a39a56acd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-11-15 Werner Lemberg + + * src/bdf/bdflib.c (bdf_load_font): Fix small memory leak (#46439). + 2015-11-11 Werner Lemberg [cff, autofit] Switch off stem darkening by default. diff --git a/src/bdf/bdflib.c b/src/bdf/bdflib.c index c1619e63c..d1d1704f6 100644 --- a/src/bdf/bdflib.c +++ b/src/bdf/bdflib.c @@ -1792,9 +1792,11 @@ glyph->encoding = (long)font->unencoded_used++; } else + { /* Free up the glyph name if the unencoded shouldn't be */ /* kept. */ FT_FREE( p->glyph_name ); + } p->glyph_name = NULL; } @@ -2598,6 +2600,7 @@ memory = extmemory; FT_FREE( p->font ); + FT_FREE( p->glyph_name ); goto Exit; }