kconfig: Don't leak choice names during parsing
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 20 Feb 2018 11:40:29 +0000 (20:40 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 2 Mar 2018 00:20:55 +0000 (09:20 +0900)
commitbf0bbdcf1003220b7ca9a6aa00a84e27e94287e8
treeae194f2149d33917adea2a335ca19cbcb093848b
parent1b1e4ee86e0064ea2a8b8e5ead13734b1e813a92
kconfig: Don't leak choice names during parsing

The named choice is not used in the kernel tree, but if it were used,
it would not be freed.

The intention of the named choice can be seen in the log of
commit 5a1aa8a1aff6 ("kconfig: add named choice group").

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
scripts/kconfig/zconf.y