]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/gtkfont.c
Merge branch 'pre-0.64'
[PuTTY.git] / unix / gtkfont.c
index 56ae031525e2ed02133efd41e97580b8a3726537..d241db0e8960d9604806a9bd43bba2644e4ce812 100644 (file)
@@ -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";