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").
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -276,6 +276,7 @@ choice: T_CHOICE word_opt T_EOL · 275 unmodified lines | ||
| 276 | 276 | sym->flags |= SYMBOL_AUTO; |
| 277 | 277 | menu_add_entry(sym); |
| 278 | 278 | menu_add_expr(P_CHOICE, NULL, NULL); |
| 279 | + free($2); | |
| 279 | 280 | printd(DEBUG_PARSE, "%s:%d:choice\n", zconf_curname(), zconf_lineno()); |
| 280 | 281 | }; |
| 281 | 282 | |