shithub: freetype+ttf2subf

Download patch

ref: 4942c2bb7240136bc299a9fc7c375e58eb37f417
parent: 7d364b7e51982ebe926c4148c752e0758c4dd2ed
author: Werner Lemberg <[email protected]>
date: Thu Sep 17 13:56:53 EDT 2015

[psaux] Fix memory leak (#45986).

* src/psaux/psobjs.c (ps_parser_load_field) <T1_FIELD_TYPE_MM_BBOX>:
Free `temp' in case of error.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2015-09-17  Werner Lemberg  <[email protected]>
 
+	[psaux] Fix memory leak (#45986).
+
+	* src/psaux/psobjs.c (ps_parser_load_field) <T1_FIELD_TYPE_MM_BBOX>:
+	Free `temp' in case of error.
+
+2015-09-17  Werner Lemberg  <[email protected]>
+
 	[psaux] Improve tracing message.
 
 	* src/psaux/psobjs.c (ps_parser_load_field) <T1_FIELD_TYPE_MM_BBOX>:
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -1241,6 +1241,8 @@
                                            : ( i == 2 ? "third"
                                                       : "fourth" ) ) ));
               error = FT_THROW( Invalid_File_Format );
+
+              FT_FREE( temp );
               goto Exit;
             }