projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kconfig: Fix malloc handling in conf tools
[carl9170fw.git]
/
config
/
menu.c
diff --git
a/config/menu.c
b/config/menu.c
index e98a05c8e50882d3b2833a2f4d05761dcffd22d3..f3bffa309333061ed5d852e7c00132107017add5 100644
(file)
--- a/
config/menu.c
+++ b/
config/menu.c
@@
-48,7
+48,7
@@
void menu_add_entry(struct symbol *sym)
{
struct menu *menu;
{
struct menu *menu;
- menu = malloc(sizeof(*menu));
+ menu =
x
malloc(sizeof(*menu));
memset(menu, 0, sizeof(*menu));
menu->sym = sym;
menu->parent = current_menu;
memset(menu, 0, sizeof(*menu));
menu->sym = sym;
menu->parent = current_menu;
@@
-531,7
+531,7
@@
static void get_prompt_str(struct gstr *r, struct property *prop,
location = menu;
}
if (head && location) {
location = menu;
}
if (head && location) {
- jump = malloc(sizeof(struct jump_key));
+ jump =
x
malloc(sizeof(struct jump_key));
if (menu_is_visible(prop->menu)) {
/*
if (menu_is_visible(prop->menu)) {
/*