Free load_opt_buf after we're done with it.
CID: 1383607 Sponsored by: Netflix
This commit is contained in:
parent
3734655b60
commit
45bef17ee1
@ -684,8 +684,9 @@ make_boot_var(const char *label, const char *loader, const char *kernel, const c
|
||||
new_ent->name = bootvar;
|
||||
new_ent->guid = EFI_GLOBAL_GUID;
|
||||
LIST_INSERT_HEAD(&efivars, new_ent, entries);
|
||||
|
||||
free(load_opt_buf);
|
||||
free(dp);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user