Free load_opt_buf after we're done with it.

CID: 1383607
Sponsored by: Netflix
This commit is contained in:
Warner Losh 2017-12-12 19:26:19 +00:00
parent 8354d13d9b
commit a6b6f888b5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326803

View file

@ -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;
}