Don't leak strings in merge declarations Introduced by the reentrant scanner commit. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
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);
}
;