Unverified Commit 8f9927d9 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!9730 efi: libstub: only free priv.runtime_map when allocated

parents 83ed2eb1 f91b9f3a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -335,7 +335,7 @@ efi_status_t allocate_new_fdt_and_exit_boot(void *handle,

fail:
	efi_free(fdt_size, fdt_addr);

	if (!efi_novamap)
		efi_bs_call(free_pool, priv.runtime_map);

	return EFI_LOAD_ERROR;