Don't leak strings in merge declarations
authorDaniel Stone <daniel@fooishbar.org>
Thu, 29 Mar 2012 00:49:55 +0000 (01:49 +0100)
committerDaniel Stone <daniel@fooishbar.org>
Thu, 29 Mar 2012 00:49:55 +0000 (01:49 +0100)
Introduced by the reentrant scanner commit.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/xkbcomp/xkbparse.y

index b6131e6..230d24f 100644 (file)
@@ -337,6 +337,7 @@ Decl                :       OptMergeMode VarDecl
                            else {
                                $$= &IncludeCreate($2,$1)->common;
                            }
+                            free($2);
                         }
                ;