mirror of https://github.com/acidanthera/audk.git
ShellPkg: removed memory leak.
removed unnecessary GetVariable call. signed-off-by: jaben carsey <jaben.carsey@intel.com> reviewed-by: erik bjorge <erik.c.bjorge@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13206 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
5ea466a551
commit
5513af68ed
|
@ -2893,7 +2893,6 @@ InternalEfiShellGetListAlias(
|
|||
UINTN NameSize;
|
||||
CHAR16 *RetVal;
|
||||
UINTN RetSize;
|
||||
CHAR16 *Alias;
|
||||
|
||||
Status = gRT->QueryVariableInfo(EFI_VARIABLE_NON_VOLATILE|EFI_VARIABLE_BOOTSERVICE_ACCESS, &MaxStorSize, &RemStorSize, &MaxVarSize);
|
||||
ASSERT_EFI_ERROR(Status);
|
||||
|
@ -2919,7 +2918,6 @@ InternalEfiShellGetListAlias(
|
|||
break;
|
||||
}
|
||||
if (CompareGuid(&Guid, &gShellAliasGuid)){
|
||||
Alias = GetVariable(VariableName, &gShellAliasGuid);
|
||||
ASSERT((RetVal == NULL && RetSize == 0) || (RetVal != NULL));
|
||||
RetVal = StrnCatGrow(&RetVal, &RetSize, VariableName, 0);
|
||||
RetVal = StrnCatGrow(&RetVal, &RetSize, L";", 0);
|
||||
|
|
Loading…
Reference in New Issue