mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Don't leak new_data.
CID: 1383605 Sponsored by: Netflix
This commit is contained in:
parent
c66805a5d5
commit
3af42ca7c1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326801
|
@ -361,6 +361,7 @@ set_boot_order(char *order)
|
||||||
free(cp);
|
free(cp);
|
||||||
if (set_bootvar("BootOrder", (uint8_t*)new_data, size) < 0)
|
if (set_bootvar("BootOrder", (uint8_t*)new_data, size) < 0)
|
||||||
err(1, "Unabke to set BootOrder to %s", order);
|
err(1, "Unabke to set BootOrder to %s", order);
|
||||||
|
free(new_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue