mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-17 03:59:05 +00:00
httpboot: fix OVMF crash
This is a typical typo. The free operation should be done if uri was allocated. Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
This commit is contained in:
parent
919c17a45f
commit
7d745e49c0
@ -110,8 +110,10 @@ find_httpboot (EFI_HANDLE device)
|
|||||||
URI_DEVICE_PATH *UriNode;
|
URI_DEVICE_PATH *UriNode;
|
||||||
UINTN uri_size;
|
UINTN uri_size;
|
||||||
|
|
||||||
if (!uri)
|
if (uri) {
|
||||||
FreePool(uri);
|
FreePool(uri);
|
||||||
|
uri = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
devpath = DevicePathFromHandle(device);
|
devpath = DevicePathFromHandle(device);
|
||||||
if (!devpath) {
|
if (!devpath) {
|
||||||
|
Loading…
Reference in New Issue
Block a user