[PATCH 3/3] kconfig: Fix choice symbol expression leak

2017-10-08 Thread Ulf Magnusson
When propagating dependencies from parents after parsing, an expression node is allocated if the parent symbol is a 'choice'. This node was never freed. Outline of leak: if (sym && sym_is_choice(sym)) { ... *Allocate (in this case only)*

[PATCH 3/3] kconfig: Fix choice symbol expression leak

2017-10-08 Thread Ulf Magnusson
When propagating dependencies from parents after parsing, an expression node is allocated if the parent symbol is a 'choice'. This node was never freed. Outline of leak: if (sym && sym_is_choice(sym)) { ... *Allocate (in this case only)*