From: David Lamparter Date: Wed, 14 Jun 2017 15:34:57 +0000 (+0200) Subject: lib: fix CLI parser memleak X-Git-Tag: reindent-master-before~50^2~4 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=4d85f868a515679b983b95e5793df988a048a545;p=mirror_frr.git lib: fix CLI parser memleak Signed-off-by: David Lamparter --- diff --git a/lib/command_parse.y b/lib/command_parse.y index 77e4e543a..333748109 100644 --- a/lib/command_parse.y +++ b/lib/command_parse.y @@ -191,7 +191,7 @@ start: varname_token: '$' WORD { - $$ = XSTRDUP (MTYPE_LEX, $2); + $$ = $2; } | /* empty */ {