Commit 96b5e500909cfce39ff78feabefd8063a229b951

Ben Wagner 2018-08-10T22:24:26

* src/sfnt/sfobjs.c (sfnt_done_face): Fix memory leak (#54435).

diff --git a/ChangeLog b/ChangeLog
index 109be13..b6cb46b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-08-10  Ben Wagner  <bungeman@google.com>
+
+	* src/sfnt/sfobjs.c (sfnt_done_face): Fix memory leak (#54435).
+
 2018-08-10  Werner Lemberg  <wl@gnu.org>
 
 	* src/base/ftobjs.c (FT_Render_Glyph_Internal): Improve tracing.
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 03e49a9..9dfc20e 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -1809,8 +1809,9 @@
     FT_FREE( face->sbit_strike_map );
     face->root.num_fixed_sizes = 0;
 
-#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
     FT_FREE( face->postscript_name );
+
+#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
     FT_FREE( face->var_postscript_prefix );
 #endif