mirror of https://github.com/acidanthera/audk.git
Fix build fail.
Signed-off-by: ydong10 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13096 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
94020bb40f
commit
bf0f6c8321
|
@ -724,7 +724,7 @@ CreateChildNode (
|
|||
// Get the CompressionSectionHeader
|
||||
//
|
||||
if (Node->Size < sizeof (EFI_COMPRESSION_SECTION)) {
|
||||
CoreFreePool (Node);
|
||||
FreePool (Node);
|
||||
return EFI_NOT_FOUND;
|
||||
}
|
||||
|
||||
|
@ -778,8 +778,8 @@ CreateChildNode (
|
|||
&ScratchSize
|
||||
);
|
||||
if (EFI_ERROR (Status) || (NewStreamBufferSize != UncompressedLength)) {
|
||||
CoreFreePool (Node);
|
||||
CoreFreePool (NewStreamBuffer);
|
||||
FreePool (Node);
|
||||
FreePool (NewStreamBuffer);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
Status = EFI_BAD_BUFFER_SIZE;
|
||||
}
|
||||
|
@ -804,8 +804,8 @@ CreateChildNode (
|
|||
);
|
||||
FreePool (ScratchBuffer);
|
||||
if (EFI_ERROR (Status)) {
|
||||
CoreFreePool (Node);
|
||||
CoreFreePool (NewStreamBuffer);
|
||||
FreePool (Node);
|
||||
FreePool (NewStreamBuffer);
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue