diff --git a/src/pcf/pcfread.c b/src/pcf/pcfread.c index 4c6823ac2..e60a0a514 100644 --- a/src/pcf/pcfread.c +++ b/src/pcf/pcfread.c @@ -613,7 +613,8 @@ THE SOFTWARE. strings[string_size] = '\0'; - if ( FT_QNEW_ARRAY( properties, nprops ) ) + /* zero out in case of failure */ + if ( FT_NEW_ARRAY( properties, nprops ) ) goto Bail; face->properties = properties;