From: Daniel Stone Date: Thu, 29 Mar 2012 00:49:55 +0000 (+0100) Subject: Don't leak strings in merge declarations X-Git-Tag: xkbcommon-0.2.0~672 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36b8771e1f21bf464d89cab7db8fd03002397ee3;p=platform%2Fupstream%2Flibxkbcommon.git Don't leak strings in merge declarations Introduced by the reentrant scanner commit. Signed-off-by: Daniel Stone --- 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); } ;