* src/bdf/bdflib.c (bdf_parse_glyphs_): Free unused glyph_name.

See https://issues.oss-fuzz.com/issues/389330334.
This commit is contained in:
Alexei Podtelezhnikov 2025-01-13 17:19:31 +00:00
parent f219996754
commit ee1310ab5c
1 changed files with 3 additions and 0 deletions

View File

@ -1447,6 +1447,9 @@
/* Check for the ENDCHAR field. */
if ( _bdf_strncmp( line, "ENDCHAR", 7 ) == 0 )
{
/* Free unused glyph_name */
FT_FREE( p->glyph_name );
p->glyph_enc = 0;
p->flags &= ~BDF_GLYPH_BITS_;