diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index 2baebe346de9..5b2415991c3e 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c @@ -440,6 +440,7 @@ void menu_finalize(struct menu *parent) menu->parent = parent; last_menu = menu; } + expr_free(basedep); if (last_menu) { parent->list = parent->next; parent->next = last_menu->next;