Fix bug in LoadFv command. Don't free the buffer the file was loaded into as the DXE Core will point to it as an FV.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10791 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
andrewfish 2010-08-12 17:21:22 +00:00
parent ae0a0b06af
commit abeca79abf
1 changed files with 3 additions and 1 deletions

View File

@ -403,7 +403,9 @@ EblLoadFvCmd (
}
Status = gDS->ProcessFirmwareVolume (FvStart, FvSize, &FvHandle);
FreePool (FvStart);
if (EFI_ERROR (Status)) {
FreePool (FvStart);
}
}
return Status;
}