summaryrefslogtreecommitdiff
path: root/NetworkPkg/IScsiDxe/IScsiMisc.c
diff options
context:
space:
mode:
authortye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524>2011-08-31 12:00:09 +0000
committertye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524>2011-08-31 12:00:09 +0000
commitc0d494b5a7e14f007a425c7c18f24a739d596bce (patch)
tree157d245028d28ace20ababaa815e338b8477c0bd /NetworkPkg/IScsiDxe/IScsiMisc.c
parent329e5116b610007d9bcefb6840ccc895d2a71460 (diff)
downloadedk2-platforms-c0d494b5a7e14f007a425c7c18f24a739d596bce.tar.xz
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
Diffstat (limited to 'NetworkPkg/IScsiDxe/IScsiMisc.c')
-rw-r--r--NetworkPkg/IScsiDxe/IScsiMisc.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/NetworkPkg/IScsiDxe/IScsiMisc.c b/NetworkPkg/IScsiDxe/IScsiMisc.c
index a697659f49..2cf3db01b7 100644
--- a/NetworkPkg/IScsiDxe/IScsiMisc.c
+++ b/NetworkPkg/IScsiDxe/IScsiMisc.c
@@ -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;
}