From f49a100a6c4b7e30f55b0b9867ea4255c144658c Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Thu, 6 Nov 2014 13:30:28 +0100 Subject: [PATCH] * src/pcf/pcfread.c (pcf_read_TOC): Avoid memory leak. --- ChangeLog | 4 ++++ src/pcf/pcfread.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b72d2c069..fe1604896 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-11-06 Werner Lemberg + + * src/pcf/pcfread.c (pcf_read_TOC): Avoid memory leak. + 2014-11-03 Infinality * src/truetype/ttsubpix.c (COMPATIBILITY_MODE_Rules): Updated. diff --git a/src/pcf/pcfread.c b/src/pcf/pcfread.c index d936c5805..f63377b08 100644 --- a/src/pcf/pcfread.c +++ b/src/pcf/pcfread.c @@ -144,7 +144,10 @@ THE SOFTWARE. if ( ( tables[i].size > tables[i + 1].offset ) || ( tables[i].offset > tables[i + 1].offset - tables[i].size ) ) - return FT_THROW( Invalid_Offset ); + { + error = FT_THROW( Invalid_Offset ); + goto Exit; + } } if ( !have_change )