summaryrefslogtreecommitdiff
path: root/glx/xfont.c
diff options
context:
space:
mode:
Diffstat (limited to 'glx/xfont.c')
-rw-r--r--glx/xfont.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/glx/xfont.c b/glx/xfont.c
index f0b5644b9..b4081cfd4 100644
--- a/glx/xfont.c
+++ b/glx/xfont.c
@@ -97,9 +97,7 @@ static int __glXMakeBitmapFromGlyph(FontPtr font, CharInfoPtr pci)
pci->metrics.characterWidth, 0,
allocbuf ? allocbuf : buf) );
- if (allocbuf) {
- free(allocbuf);
- }
+ free(allocbuf);
return Success;
#undef __GL_CHAR_BUF_SIZE
}