Commit 36b8771e1f21bf464d89cab7db8fd03002397ee3

Daniel Stone 2012-03-29T01:49:55

Don't leak strings in merge declarations Introduced by the reentrant scanner commit. Signed-off-by: Daniel Stone <daniel@fooishbar.org>

1
2
3
4
5
6
7
8
9
10
11
12
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);
                         }
 		;