aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/efibootmgr/efibootmgr.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-12-12 19:26:19 +0000
committerWarner Losh <imp@FreeBSD.org>2017-12-12 19:26:19 +0000
commita6b6f888b524de8d4917ab502db43734d2c5b5ed (patch)
tree2d0a516c94a933c7f845fe1d741a60bcce5c9e82 /usr.sbin/efibootmgr/efibootmgr.c
parent8354d13d9bd6b826b062948216c9a285a9cb7dd3 (diff)
downloadsrc-a6b6f888b524de8d4917ab502db43734d2c5b5ed.tar.gz
src-a6b6f888b524de8d4917ab502db43734d2c5b5ed.zip
Free load_opt_buf after we're done with it.
CID: 1383607 Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=326803
Diffstat (limited to 'usr.sbin/efibootmgr/efibootmgr.c')
-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;
}