mirror of https://github.com/acidanthera/audk.git
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:
parent
ae0a0b06af
commit
abeca79abf
|
@ -403,7 +403,9 @@ EblLoadFvCmd (
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = gDS->ProcessFirmwareVolume (FvStart, FvSize, &FvHandle);
|
Status = gDS->ProcessFirmwareVolume (FvStart, FvSize, &FvHandle);
|
||||||
FreePool (FvStart);
|
if (EFI_ERROR (Status)) {
|
||||||
|
FreePool (FvStart);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue