FreePool differs from gBS->FreePool

Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
Sergey Isakov 2020-02-15 09:13:01 +03:00
parent dd079d4a9f
commit 28ad1105d3

View File

@ -1264,14 +1264,14 @@ BdsLibGetImageHeader (
break;
}
if (Status != EFI_BUFFER_TOO_SMALL) {
FreePool (Info);
gBS->FreePool (Info);
goto Done;
}
FreePool (Info);
gBS->FreePool (Info);
} while (TRUE);
FileSize = Info->FileSize;
FreePool (Info);
gBS->FreePool (Info);
//
// Read dos header