From 28ad1105d38d8d37e8be756d225c8149caf6a06d Mon Sep 17 00:00:00 2001 From: Sergey Isakov Date: Sat, 15 Feb 2020 09:13:01 +0300 Subject: [PATCH] FreePool differs from gBS->FreePool Signed-off-by: Sergey Isakov --- Library/GenericBdsLib/BdsMisc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/GenericBdsLib/BdsMisc.c b/Library/GenericBdsLib/BdsMisc.c index 708e83556..ec41eb42e 100644 --- a/Library/GenericBdsLib/BdsMisc.c +++ b/Library/GenericBdsLib/BdsMisc.c @@ -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