Clean up the gBS sevice (CopyMem, SetMem, AllocatePool, FreePool) with the corresponding APIs defined in Mde library class for these modules.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2456 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -124,8 +124,9 @@ Returns:
|
||||
return Status;
|
||||
}
|
||||
|
||||
Status = gBS->AllocatePool (EfiBootServicesData, TotalSize, (VOID **) &LogEntry);
|
||||
if (EFI_ERROR (Status)) {
|
||||
LogEntry = AllocatePool (TotalSize);
|
||||
|
||||
if (LogEntry == NULL) {
|
||||
EfiReleaseLock (&Private->DataLock);
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
@@ -386,7 +387,7 @@ Returns:
|
||||
// Search for duplicate entries
|
||||
//
|
||||
if (FindFilterDriverByEvent (&Private->FilterDriverListHead, FilterEvent) != NULL) {
|
||||
gBS->FreePool (FilterDriver);
|
||||
FreePool (FilterDriver);
|
||||
return EFI_ALREADY_STARTED;
|
||||
}
|
||||
//
|
||||
|
Reference in New Issue
Block a user