Clean up the following module msa files.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2579 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2007-04-20 01:29:05 +00:00
parent ebb9ce7a06
commit 627c1d22d9
12 changed files with 106 additions and 290 deletions

View File

@@ -349,7 +349,7 @@ Returns:
// If the token value is not valid, error out
//
if ((*Reference >= TotalStringCount) && !ResetStrings) {
gBS->FreePool (NewBuffer);
FreePool (NewBuffer);
return EFI_INVALID_PARAMETER;
}
//
@@ -631,7 +631,7 @@ Returns:
//
// Free the previous buffer associated with this handle, and assign the new buffer to the handle
//
gBS->FreePool (HandleDatabase->Buffer);
FreePool (HandleDatabase->Buffer);
HandleDatabase->Buffer = NewBuffer;
break;
}
@@ -710,7 +710,7 @@ Returns:
);
}
gBS->FreePool (LangCodes);
FreePool (LangCodes);
}
return Status;
@@ -764,7 +764,7 @@ Returns:
ASSERT_EFI_ERROR (Status);
}
gBS->FreePool (LangCodes);
FreePool (LangCodes);
return EFI_SUCCESS;
}
@@ -1240,7 +1240,7 @@ HiiCompareLanguage (
// If the Language is the same return success
//
if (CompareMem (LanguageStringLocation, Language, 6) == 0) {
gBS->FreePool (InputString);
FreePool (InputString);
return EFI_SUCCESS;
}
//
@@ -1258,14 +1258,14 @@ HiiCompareLanguage (
// Getting in here means we have a secondary language
//
if (CompareMem (&InputString[Index], Language, 6) == 0) {
gBS->FreePool (InputString);
FreePool (InputString);
return EFI_SUCCESS;
}
}
//
// If nothing was found, return the error
//
gBS->FreePool (OriginalInputString);
FreePool (OriginalInputString);
return EFI_NOT_FOUND;
}