diff --git a/Library/OcDeviceMiscLib/PciInfoDump.c b/Library/OcDeviceMiscLib/PciInfoDump.c index 3582520f..7f1d7f22 100644 --- a/Library/OcDeviceMiscLib/PciInfoDump.c +++ b/Library/OcDeviceMiscLib/PciInfoDump.c @@ -64,6 +64,7 @@ OcPciInfoDump ( ); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_INFO, "OCDM: No PCI devices found for dumping - %r\n", Status)); + FreePool (FileBuffer); return Status; }