Skip to content

Commit

Permalink
Use gBS->FreePool instead of FreePool for firmware allocated memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
jief666 committed Jan 8, 2024
1 parent 0fcc050 commit 8270a6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Library/OcDeviceMiscLib/SetResizableBar.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ ResizeGpuBarsPciIo (
}
}

FreePool (HandleBuffer);
gBS->FreePool(HandleBuffer); // use gBS->FreePool instead of FreePool to avoid message from MemoryTracker

if (HasSuccess) {
return EFI_SUCCESS;
Expand Down
2 changes: 1 addition & 1 deletion Library/OcMainLib/OpenCoreUefi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ OcLoadUefiSupport (
);
DEBUG ((DEBUG_INFO, "OC: Found %u pointer devices - %r\n", HandleCount, Status));
if (!EFI_ERROR (Status)) {
FreePool (HandleBuffer);
gBS->FreePool (HandleBuffer); // use gBS->FreePool instead of FreePool to avoid message from MemoryTracker
}

DEBUG_CODE_END ();
Expand Down

0 comments on commit 8270a6f

Please sign in to comment.