From 3af42ca7c1b64ed62388d25d18d0ac0ab7b38c9a Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 12 Dec 2017 19:26:10 +0000 Subject: [PATCH] Don't leak new_data. CID: 1383605 Sponsored by: Netflix --- usr.sbin/efibootmgr/efibootmgr.c | 1 + 1 file changed, 1 insertion(+) 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