mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 21:12:47 -05:00
Fix another giant batch of resource leaks. (Mostly memory, but there's
one missing fclose too.) [originally from svn r9919]
This commit is contained in:
@ -191,8 +191,10 @@ static char *x11_guess_derived_font_name(XFontStruct *xfs, int bold, int wide)
|
||||
p++;
|
||||
}
|
||||
|
||||
if (nstr < lenof(strings))
|
||||
if (nstr < lenof(strings)) {
|
||||
sfree(dupname);
|
||||
return NULL; /* XLFD was malformed */
|
||||
}
|
||||
|
||||
if (bold)
|
||||
strings[2] = "bold";
|
||||
|
Reference in New Issue
Block a user