提交 14f3f748 编写于 作者: D Download-Fritz

OcAppleImageVerificationLib: Fix a memory leak

上级 2cac6fd2
......@@ -614,6 +614,7 @@ VerifyApplePeImageSignature (
SignatureContext = AllocateZeroPool (sizeof (APPLE_SIGNATURE_CONTEXT));
if (SignatureContext == NULL) {
DEBUG ((DEBUG_WARN, "Signature context allocation failure\n"));
FreePool (Context);
return EFI_OUT_OF_RESOURCES;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册