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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user