~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add an error check to every setsockopt call in uxnet.c.
[sgt/putty]
/
unix
/
gtkfont.c
diff --git
a/unix/gtkfont.c
b/unix/gtkfont.c
index
56ae031
..
d241db0
100644
(file)
--- a/
unix/gtkfont.c
+++ b/
unix/gtkfont.c
@@
-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";