Don't leak new_data.

CID: 1383605
Sponsored by: Netflix
This commit is contained in:
Warner Losh 2017-12-12 19:26:10 +00:00
parent c66805a5d5
commit 3af42ca7c1

View File

@ -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