1. Update iSCSI UI to be more user-friendly.
2. Fix potential memory leak issue in IScsiConfig.c. Signed-off-by: tye Reviewed-by: xdu2 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12245 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -297,7 +297,7 @@ IScsiMacAddrToStr (
|
||||
for (Index = 0; Index < Len; Index++) {
|
||||
Str[3 * Index] = (CHAR16) IScsiHexString[(Mac->Addr[Index] >> 4) & 0x0F];
|
||||
Str[3 * Index + 1] = (CHAR16) IScsiHexString[Mac->Addr[Index] & 0x0F];
|
||||
Str[3 * Index + 2] = L'-';
|
||||
Str[3 * Index + 2] = L':';
|
||||
}
|
||||
|
||||
String = &Str[3 * Index - 1] ;
|
||||
@@ -640,6 +640,14 @@ IScsiRemoveNic (
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Free attempt is created but not saved to system.
|
||||
//
|
||||
if (mPrivate->NewAttempt != NULL) {
|
||||
FreePool (mPrivate->NewAttempt);
|
||||
mPrivate->NewAttempt = NULL;
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user