summaryrefslogtreecommitdiff
path: root/xserver/hw/xfree86/parser/Layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/hw/xfree86/parser/Layout.c')
-rw-r--r--xserver/hw/xfree86/parser/Layout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xserver/hw/xfree86/parser/Layout.c b/xserver/hw/xfree86/parser/Layout.c
index 2c829f4ee..532f318f3 100644
--- a/xserver/hw/xfree86/parser/Layout.c
+++ b/xserver/hw/xfree86/parser/Layout.c
@@ -101,6 +101,8 @@ xf86parseLayoutSection(void)
switch (token) {
case COMMENT:
ptr->lay_comment = xf86addComment(ptr->lay_comment, xf86_lex_val.str);
+ free(xf86_lex_val.str);
+ xf86_lex_val.str = NULL;
break;
case IDENTIFIER:
if (xf86getSubToken(&(ptr->lay_comment)) != STRING)