add error handler to pass K8 check

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8687 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
eric_tian
2009-06-30 07:29:19 +00:00
parent a56678b8ce
commit 653ef62ee9
3 changed files with 20 additions and 12 deletions

View File

@@ -165,6 +165,7 @@ IScsiCHAPOnRspReceived (
//
KeyValueList = IScsiBuildKeyValueList ((CHAR8 *) Data, Len);
if (KeyValueList == NULL) {
gBS->FreePool (Data);
return EFI_OUT_OF_RESOURCES;
}