projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kconfig: Fix choice symbol expression leak
[carl9170fw.git]
/
config
/
menu.c
diff --git
a/config/menu.c
b/config/menu.c
index 2baebe346de9528d3adc3f89fc1d7bddde0377a4..41c79bef3d075fa1122643ceb3cdae9e8289e8d5 100644
(file)
--- a/
config/menu.c
+++ b/
config/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
/*
* Recursively process children in the same fashion before
* moving on
@@
-440,6
+443,7
@@
void menu_finalize(struct menu *parent)
menu->parent = parent;
last_menu = menu;
}
menu->parent = parent;
last_menu = menu;
}
+ expr_free(basedep);
if (last_menu) {
parent->list = parent->next;
parent->next = last_menu->next;
if (last_menu) {
parent->list = parent->next;
parent->next = last_menu->next;