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