* src/pfr/pfrload.c (pfr_aux_name_load): Fix memory leak (#47567).
This commit is contained in:
parent
ff82747e6d
commit
ccd771cdf6
|
@ -1,3 +1,7 @@
|
||||||
|
2016-03-30 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
* src/pfr/pfrload.c (pfr_aux_name_load): Fix memory leak (#47567).
|
||||||
|
|
||||||
2016-03-29 Werner Lemberg <wl@gnu.org>
|
2016-03-29 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
* src/base/ftadvance.c (FT_Get_Advances): Fix invalid left shift.
|
* src/base/ftadvance.c (FT_Get_Advances): Fix invalid left shift.
|
||||||
|
|
|
@ -740,9 +740,8 @@
|
||||||
if ( len > 0 && p[len - 1] == 0 )
|
if ( len > 0 && p[len - 1] == 0 )
|
||||||
len--;
|
len--;
|
||||||
|
|
||||||
/* check that each character is ASCII for making sure not to
|
/* check that each character is ASCII */
|
||||||
load garbage
|
/* for making sure not to load garbage */
|
||||||
*/
|
|
||||||
ok = ( len > 0 );
|
ok = ( len > 0 );
|
||||||
for ( n = 0; n < len; n++ )
|
for ( n = 0; n < len; n++ )
|
||||||
if ( p[n] < 32 || p[n] > 127 )
|
if ( p[n] < 32 || p[n] > 127 )
|
||||||
|
@ -753,6 +752,9 @@
|
||||||
|
|
||||||
if ( ok )
|
if ( ok )
|
||||||
{
|
{
|
||||||
|
if ( *astring )
|
||||||
|
FT_FREE( *astring );
|
||||||
|
|
||||||
if ( FT_ALLOC( result, len + 1 ) )
|
if ( FT_ALLOC( result, len + 1 ) )
|
||||||
goto Exit;
|
goto Exit;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue