From 36b8771e1f21bf464d89cab7db8fd03002397ee3 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Thu, 29 Mar 2012 01:49:55 +0100 Subject: [PATCH] Don't leak strings in merge declarations Introduced by the reentrant scanner commit. Signed-off-by: Daniel Stone --- src/xkbcomp/xkbparse.y | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xkbcomp/xkbparse.y b/src/xkbcomp/xkbparse.y index b6131e6..230d24f 100644 --- a/src/xkbcomp/xkbparse.y +++ b/src/xkbcomp/xkbparse.y @@ -337,6 +337,7 @@ Decl : OptMergeMode VarDecl else { $$= &IncludeCreate($2,$1)->common; } + free($2); } ;