Don't leak new_data.

CID: 1383605
Sponsored by: Netflix
This commit is contained in:
imp 2017-12-12 19:26:10 +00:00
parent 6ebf216419
commit 22bccd4c7f

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