mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +00:00
kconfig: Fix malloc handling in conf tools
(and get them out of the noise in the audit work) Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
parent
9a926d4354
commit
177acf7846
6 changed files with 40 additions and 19 deletions
|
@ -48,7 +48,7 @@ void menu_add_entry(struct symbol *sym)
|
|||
{
|
||||
struct menu *menu;
|
||||
|
||||
menu = malloc(sizeof(*menu));
|
||||
menu = xmalloc(sizeof(*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) {
|
||||
jump = malloc(sizeof(struct jump_key));
|
||||
jump = xmalloc(sizeof(struct jump_key));
|
||||
|
||||
if (menu_is_visible(prop->menu)) {
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue