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
|
// Get the CompressionSectionHeader
|
||||||
//
|
//
|
||||||
if (Node->Size < sizeof (EFI_COMPRESSION_SECTION)) {
|
if (Node->Size < sizeof (EFI_COMPRESSION_SECTION)) {
|
||||||
CoreFreePool (Node);
|
FreePool (Node);
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -778,8 +778,8 @@ CreateChildNode (
|
||||||
&ScratchSize
|
&ScratchSize
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status) || (NewStreamBufferSize != UncompressedLength)) {
|
if (EFI_ERROR (Status) || (NewStreamBufferSize != UncompressedLength)) {
|
||||||
CoreFreePool (Node);
|
FreePool (Node);
|
||||||
CoreFreePool (NewStreamBuffer);
|
FreePool (NewStreamBuffer);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
Status = EFI_BAD_BUFFER_SIZE;
|
Status = EFI_BAD_BUFFER_SIZE;
|
||||||
}
|
}
|
||||||
|
@ -804,8 +804,8 @@ CreateChildNode (
|
||||||
);
|
);
|
||||||
FreePool (ScratchBuffer);
|
FreePool (ScratchBuffer);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
CoreFreePool (Node);
|
FreePool (Node);
|
||||||
CoreFreePool (NewStreamBuffer);
|
FreePool (NewStreamBuffer);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue