Free load_opt_buf after we're done with it.

CID: 1383607
Sponsored by: Netflix
This commit is contained in:
imp 2017-12-12 19:26:19 +00:00
parent 3734655b60
commit 45bef17ee1

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