);\r
DEBUG ((EFI_D_INFO, "Tpm2PcrAllocate - %r\n", Status));\r
if (EFI_ERROR (Status)) {\r
- return Status;\r
+ goto Done;\r
}\r
\r
DEBUG ((EFI_D_INFO, "AllocationSuccess - %02x\n", AllocationSuccess));\r
DEBUG ((EFI_D_INFO, "SizeNeeded - %08x\n", SizeNeeded));\r
DEBUG ((EFI_D_INFO, "SizeAvailable - %08x\n", SizeAvailable));\r
\r
- return EFI_SUCCESS;\r
+Done:\r
+ ZeroMem(&LocalAuthSession.hmac, sizeof(LocalAuthSession.hmac));\r
+ return Status;\r
}\r
\r
/**\r
\r
Status = Tpm2ChangeEPS (TPM_RH_PLATFORM, AuthSession);\r
DEBUG ((EFI_D_INFO, "Tpm2ChangeEPS - %r\n", Status));\r
+\r
+ ZeroMem(&LocalAuthSession.hmac, sizeof(LocalAuthSession.hmac));\r
return Status;\r
}\r
\r