* src/bdf/bdflib.c (bdf_load_font): Fix small memory leak (#46439).
diff --git a/src/bdf/bdflib.c b/src/bdf/bdflib.c
index c1619e6..d1d1704 100644
--- a/src/bdf/bdflib.c
+++ b/src/bdf/bdflib.c
@@ -1792,9 +1792,11 @@
glyph->encoding = (long)font->unencoded_used++;
}
else
+ {
/* Free up the glyph name if the unencoded shouldn't be */
/* kept. */
FT_FREE( p->glyph_name );
+ }
p->glyph_name = NULL;
}
@@ -2598,6 +2600,7 @@
memory = extmemory;
FT_FREE( p->font );
+ FT_FREE( p->glyph_name );
goto Exit;
}