Make sure gBS FreePool() is used to free the buffer always allocated by gBS AllocatePool() service.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10695 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2010-07-26 16:20:34 +00:00
parent 082be7a58a
commit 0433d8f018
2 changed files with 40 additions and 4 deletions

View File

@@ -96,7 +96,11 @@ PciSegmentLibConstructor (
ASSERT (Descriptors->Desc != ACPI_END_TAG_DESCRIPTOR);
}
FreePool(HandleBuffer);
//
// HandleBuffer is allocated by gBS AllocatePool() service.
// So, gBS FreePool() service is used to free HandleBuffer.
//
gBS->FreePool (HandleBuffer);
return EFI_SUCCESS;
}