summaryrefslogtreecommitdiff
path: root/xserver/hw/xfree86/parser/DRI.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/hw/xfree86/parser/DRI.c')
-rw-r--r--xserver/hw/xfree86/parser/DRI.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xserver/hw/xfree86/parser/DRI.c b/xserver/hw/xfree86/parser/DRI.c
index 31f447d05..933e69f30 100644
--- a/xserver/hw/xfree86/parser/DRI.c
+++ b/xserver/hw/xfree86/parser/DRI.c
@@ -77,6 +77,8 @@ xf86parseDRISection(void)
break;
case COMMENT:
ptr->dri_comment = xf86addComment(ptr->dri_comment, xf86_lex_val.str);
+ free(xf86_lex_val.str);
+ xf86_lex_val.str = NULL;
break;
default:
Error(INVALID_KEYWORD_MSG, xf86tokenString());