SETLABELFONT leaks list of font names when given unknown font face
This is fixed by [r6172]. The fix will be available in FMSLogo 8.5.0.
Fix Bug #608; SETLABELFONT no longer leaks memory when given an unknown font.
Note that Bug #404 was fixed in version 7.0.0.
SETLABELFONT leaks memory when given bad input
This bug was unintentionally fixed in FMSLogo 7.0.0 by [r4179]. The leak was due to the interplay of lsetlabelfont() and ranged_integer_arg(). The relevant part of lsetlabelfont is: // now fill in the rest of the (optional) fields if given if (cdr(args) != NIL) { FontRec.lfHeight = int_arg(args = cdr(args)); } if (cdr(args) != NIL) { FontRec.lfWidth = getint(nonnegative_int_arg(args = cdr(args))); } Here you see that the width is processed by nonnegative_int_arg, even if the height is malformed....
SETLABELFONT leaks list of font names when given unknown font face
SETLABELFONT populates a FONTREC. The Windows documentation has more information: https://learn.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-logfontw Beyond that, your guess is as good as mine.