There are several EFI_UNSUPPORTED exceptions in handle_image() of pe.c
Some of them are missing returning page memory to firmware by FreePages(); while some of them are using unmatched FreePoll() function which implicitly is uefi_call_wrapper(BS->FreePool, 1, Buffer) to return memory. According to UEFI spec 2.0, FreePoll() is only used for AllocatePoll() when memory is returned to the available pool.
There are several EFI_UNSUPPORTED exceptions in
handle_image()
of pe.c Some of them are missing returning page memory to firmware byFreePages()
; while some of them are using unmatchedFreePoll()
function which implicitly isuefi_call_wrapper(BS->FreePool, 1, Buffer)
to return memory. According to UEFI spec 2.0,FreePoll()
is only used forAllocatePoll()
when memory is returned to the available pool.