mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-30 00:54:06 +02:00
Svace: Fixed MEMORY_LEAK.EX warning.
This commit is contained in:
parent
fc244c6f0b
commit
a7803f3888
@ -561,6 +561,7 @@ ProduceFVBProtocolOnBuffer (
|
|||||||
//
|
//
|
||||||
FvbDev->DevicePath = (EFI_DEVICE_PATH_PROTOCOL *) AllocateCopyPool (sizeof (FV_MEMMAP_DEVICE_PATH), &mFvMemmapDevicePathTemplate);
|
FvbDev->DevicePath = (EFI_DEVICE_PATH_PROTOCOL *) AllocateCopyPool (sizeof (FV_MEMMAP_DEVICE_PATH), &mFvMemmapDevicePathTemplate);
|
||||||
if (FvbDev->DevicePath == NULL) {
|
if (FvbDev->DevicePath == NULL) {
|
||||||
|
FreePool (FvbDev->LbaCache);
|
||||||
FreePool (FvbDev);
|
FreePool (FvbDev);
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
@ -572,6 +573,7 @@ ProduceFVBProtocolOnBuffer (
|
|||||||
//
|
//
|
||||||
FvbDev->DevicePath = (EFI_DEVICE_PATH_PROTOCOL *) AllocateCopyPool (sizeof (FV_PIWG_DEVICE_PATH), &mFvPIWGDevicePathTemplate);
|
FvbDev->DevicePath = (EFI_DEVICE_PATH_PROTOCOL *) AllocateCopyPool (sizeof (FV_PIWG_DEVICE_PATH), &mFvPIWGDevicePathTemplate);
|
||||||
if (FvbDev->DevicePath == NULL) {
|
if (FvbDev->DevicePath == NULL) {
|
||||||
|
FreePool (FvbDev->LbaCache);
|
||||||
FreePool (FvbDev);
|
FreePool (FvbDev);
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
@ -714,6 +716,3 @@ CoreProcessFirmwareVolume (
|
|||||||
}
|
}
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user