summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/kconfig/menu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index 5b2415991c3e..41c79bef3d07 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -408,6 +408,9 @@ void menu_finalize(struct menu *parent)
}
}
+ if (sym && sym_is_choice(sym))
+ expr_free(parentdep);
+
/*
* Recursively process children in the same fashion before
* moving on