* src/type1/t1load.c (parse_subrs): Fix memory leak (#46744).

This commit is contained in:
Werner Lemberg 2015-12-22 12:05:46 +01:00
parent 7ce6c43c3e
commit 9c1a2b0439
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2015-12-22 Werner Lemberg <wl@gnu.org>
* src/type1/t1load.c (parse_subrs): Fix memory leak (#46744).
2015-12-22 Werner Lemberg <wl@gnu.org>
[base] Make hash interface symmetric.

View File

@ -1462,6 +1462,8 @@
if ( FT_NEW( hash ) )
goto Fail;
loader->subrs_hash = hash;
error = ft_hash_num_init( hash, memory );
if ( error )
goto Fail;
@ -1571,10 +1573,7 @@
}
if ( !loader->num_subrs )
{
loader->num_subrs = num_subrs;
loader->subrs_hash = hash;
}
loader->num_subrs = num_subrs;
return;