memory leak in FreeTypeGetInfoScalable/FreeTypeLoadXFont
FreeTypeLoadXFont()'s third parameter is a FontPtr called "xf" and it is used to store the allocated FTFontPtr:
https://gitlab.freedesktop.org/xorg/lib/libxfont/-/blob/master/src/FreeType/ftfuncs.c#L3615
FreeTypeGetInfoScalable() calls FreeTypeLoadXFont(..,..,0,....). This results in the allocated FTFontPtr not being stored anywhere within FreeTypeLoadXFont() and therefore being lost.