mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Free load_opt_buf after we're done with it.
CID: 1383607 Sponsored by: Netflix
This commit is contained in:
parent
8354d13d9b
commit
a6b6f888b5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326803
|
@ -684,8 +684,9 @@ make_boot_var(const char *label, const char *loader, const char *kernel, const c
|
||||||
new_ent->name = bootvar;
|
new_ent->name = bootvar;
|
||||||
new_ent->guid = EFI_GLOBAL_GUID;
|
new_ent->guid = EFI_GLOBAL_GUID;
|
||||||
LIST_INSERT_HEAD(&efivars, new_ent, entries);
|
LIST_INSERT_HEAD(&efivars, new_ent, entries);
|
||||||
|
free(load_opt_buf);
|
||||||
free(dp);
|
free(dp);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue