aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/efibootmgr/efibootmgr.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-12-12 19:26:10 +0000
committerWarner Losh <imp@FreeBSD.org>2017-12-12 19:26:10 +0000
commit3af42ca7c1b64ed62388d25d18d0ac0ab7b38c9a (patch)
tree60ea355c6ef8720144451b2c86d0ad3eb0606522 /usr.sbin/efibootmgr/efibootmgr.c
parentc66805a5d50048270a6831db50cc6b334278dec4 (diff)
downloadsrc-3af42ca7c1b64ed62388d25d18d0ac0ab7b38c9a.tar.gz
src-3af42ca7c1b64ed62388d25d18d0ac0ab7b38c9a.zip
Don't leak new_data.
CID: 1383605 Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=326801
Diffstat (limited to 'usr.sbin/efibootmgr/efibootmgr.c')
-rw-r--r--usr.sbin/efibootmgr/efibootmgr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/efibootmgr/efibootmgr.c b/usr.sbin/efibootmgr/efibootmgr.c
index 90f792ec3fb3..5439cba5aa26 100644
--- a/usr.sbin/efibootmgr/efibootmgr.c
+++ b/usr.sbin/efibootmgr/efibootmgr.c
@@ -361,6 +361,7 @@ set_boot_order(char *order)
free(cp);
if (set_bootvar("BootOrder", (uint8_t*)new_data, size) < 0)
err(1, "Unabke to set BootOrder to %s", order);
+ free(new_data);
}
static void