Move some define code to the uni file. Also fixed some memory leak.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11015 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10
2010-11-09 03:22:42 +00:00
parent 224beee0fa
commit 8835954602
8 changed files with 197 additions and 91 deletions

View File

@@ -206,6 +206,7 @@ GetNameFromHandle (
);
if (EFI_ERROR (Status)) {
StrCpy (mGaugeString, StringPtr);
FreePool (StringPtr);
return ;
}
@@ -225,6 +226,7 @@ GetNameFromHandle (
} else {
StrCpy (mGaugeString, StringPtr);
}
FreePool (StringPtr);
return ;
}
@@ -289,6 +291,7 @@ PrintToken (
if (Return > 0 && gST->ConOut != NULL) {
gST->ConOut->OutputString (gST->ConOut, mPrintTokenBuffer);
}
FreePool (StringPtr);
return Return;
}