OcDeviceMiscLib: Fix NULL pointer freeing
@@ -184,9 +184,11 @@ ReloadPciRom (
}
}
+ if (DecompressedImageBuffer != NULL) {
FreePool (DecompressedImageBuffer);
}
}
+ }
RomBarOffset = RomBarOffset + ImageSize;
ImageIndex++;
