diff --git a/ChangeLog b/ChangeLog index 8bad3b52d..6e90f76d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-09-17 Werner Lemberg + + [psaux] Fix memory leak (#45986). + + * src/psaux/psobjs.c (ps_parser_load_field) : + Free `temp' in case of error. + 2015-09-17 Werner Lemberg [psaux] Improve tracing message. diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c index 1852998b4..1d3c7e662 100644 --- 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; }