aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/efibootmgr/efibootmgr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/efibootmgr/efibootmgr.c b/usr.sbin/efibootmgr/efibootmgr.c
index 4eb1b644e07c..95bb18a6f431 100644
--- a/usr.sbin/efibootmgr/efibootmgr.c
+++ b/usr.sbin/efibootmgr/efibootmgr.c
@@ -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;
}