Free load_opt_buf after we're done with it.
CID: 1383607 Sponsored by: Netflix
This commit is contained in:
parent
8354d13d9b
commit
a6b6f888b5
@ -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