From 597cb3b44267325d6aa8ee32bf5b7712aa2b588f Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 30 Mar 2018 13:46:03 +0200 Subject: [PATCH] [truetype] Fix memory leak (only if tracing is on). * src/truetype/ttgxvar.c (TT_Get_MM_Var) [FT_DEBUG_LEVEL_TRACE}: Fix it. --- ChangeLog | 7 +++++++ src/truetype/ttgxvar.c | 3 +++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index c6ed98daa..cc2c7770e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2018-03-30 Werner Lemberg + + [truetype] Fix memory leak (only if tracing is on). + + * src/truetype/ttgxvar.c (TT_Get_MM_Var) [FT_DEBUG_LEVEL_TRACE}: Fix + it. + 2018-03-23 Ben Wagner [sfnt] Correctly handle missing bitmaps in sbix format (#53404). diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c index b3e9ec7d9..29ab2a4ef 100644 --- a/src/truetype/ttgxvar.c +++ b/src/truetype/ttgxvar.c @@ -2280,6 +2280,9 @@ psname ? "PS name: `" : "", psname ? psname : "no PS name", psname ? "'" : "" )); + + FT_FREE( strname ); + FT_FREE( psname ); } #endif /* FT_DEBUG_LEVEL_TRACE */